Skip to content

Commit

Permalink
test: exit code on signal
Browse files Browse the repository at this point in the history
demonstrate that dune exits with 1

Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed May 24, 2022
1 parent 2457dde commit 2d1726d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/blackbox-tests/test-cases/signal-exit-code.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Demonstrate the exit code once dune is interrupted by a signal

$ cat >dune-project <<EOF
> (lang dune 3.2)
> EOF

$ cat >dune <<EOF
> (rule
> (alias all)
> (action (system "kill -s INT \$PPID")))
> EOF

$ dune build @all
[1]

0 comments on commit 2d1726d

Please sign in to comment.