Skip to content

Commit 54a3698

Browse files
author
David Scott
committed
Database: unit test now exits with non-zero on error (woo)
Thanks to @johnelse for pointing this out. Signed-off-by: David Scott <[email protected]>
1 parent 74fd925 commit 54a3698

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

ocaml/database/db_cache_test.ml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,8 @@ let check_many_to_many () =
6868
open OUnit
6969

7070
let _ =
71-
let verbose = ref false in
72-
Arg.parse [
73-
"-verbose", Arg.Unit (fun _ -> verbose := true), "Run in verbose mode";
74-
] (fun x -> Printf.fprintf stderr "Ignoring argument: %s" x)
75-
"Test database library";
76-
77-
let suite = "tar" >:::
71+
let suite = "db_cache" >:::
7872
[
7973
"many to many" >:: check_many_to_many;
8074
] in
81-
run_test_tt ~verbose:!verbose suite
75+
OUnit2.run_test_tt_main (OUnit.ounit2_of_ounit1 suite)

0 commit comments

Comments
 (0)