for i = 1 to argc - 1 do
let fname = Sys.argv.(i) in
prerr_endline ("# " ^ fname);
- let expected = parse_regtest fname in
- let actual = test_this expected.term in
- if as_expected expected actual then
- incr ok
- else
- nok := fname :: !nok;
+ try
+ let expected = parse_regtest fname in
+ let actual = test_this expected.term in
+ if as_expected expected actual then
+ incr ok
+ else
+ nok := fname :: !nok;
+ with e -> nok := fname :: !nok
done;
print_msg "Regtest completed:";
print_msg (sprintf "Succeeded: %d" !ok);