Skip to content

Commit

Permalink
test: add repro for ocaml#9272 (codesign regression)
Browse files Browse the repository at this point in the history
  • Loading branch information
emillon committed Mar 12, 2024
1 parent fcfe36b commit 058967e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions test/blackbox-tests/test-cases/github9272.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
$ cat > dune-project << EOF
> (lang dune 3.0)
> (using dune_site 0.1)
> EOF

$ cat > dune << EOF
> (executable
> (name hello)
> (promote (until-clean))
> (libraries dune-site))
> EOF

$ touch hello.ml

$ cat > exec.ml << EOF
> let () =
> let pid =
> Unix.create_process
> "./hello.exe" [|"./hello.exe"|]
> Unix.stdin Unix.stdout Unix.stderr
> in
> match Unix.waitpid [] pid with
> | _, WEXITED n -> Printf.printf "WEXITED %d" n
> | _, WSTOPPED n -> Printf.printf "WSTOPPED %d" n
> | _, WSIGNALED n -> Printf.printf "WSIGNALED %d" n
> EOF

$ dune build

$ ocaml -I +unix unix.cma exec.ml
WSIGNALED -7

0 comments on commit 058967e

Please sign in to comment.