Created
May 13, 2014 12:56
-
-
Save simonjbeaumont/9dbb0771baf616c3493d to your computer and use it in GitHub Desktop.
Why does this have return code 0 when executed?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: | |
ocamlfind ocamlc -o test_test -package oUnit -linkpkg -g test.ml | |
clean: | |
rm *.cmi *.cmo *.cmx test_test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open OUnit | |
let test1 () = assert_failure "Test failure" | |
let suite = "suite" >::: ["test1" >:: test1] | |
let _ = | |
run_test_tt_main suite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For me, running the executable from the above
./test_test
states there was a failure but the executable returns 0. Contrary to the following docs for OUnit: