Skip to content

Commit

Permalink
Assert machdep-ml exit code to be 0
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Sep 25, 2024
1 parent 72829a3 commit 9f4fac4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/machdepArchConfigure.ml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ let () =
let {C.Process.exit_code; stdout; stderr} = C.Process.run c !real_gcc ["-D_GNUCC"; "-m" ^ !m; "machdep-ml.c"; "-o"; exe] in
if exit_code = 0 then (
let {C.Process.stdout; stderr; exit_code} = C.Process.run c exe [] in
assert (exit_code = 0);
Printf.printf "Some {%s}" stdout
)
else
Expand Down
1 change: 1 addition & 0 deletions src/modelConfigure.ml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ let () =
let {C.Process.exit_code; stdout; stderr} = C.Process.run c !real_gcc ["-D_GNUCC"; "-m" ^ !m; "machdep-ml.c"; "-o"; exe] in
if exit_code = 0 then (
let {C.Process.stdout; stderr; exit_code} = C.Process.run c exe ["--env"] in
assert (exit_code = 0);
print_string stdout;
)
else
Expand Down

0 comments on commit 9f4fac4

Please sign in to comment.