X-Git-Url: https://git.xandkar.net/?p=tiger.ml.git;a=blobdiff_plain;f=compiler%2Fsrc%2Fexe%2Ftiger_tests.ml;h=e2015e9234ed9bea16568adc15d4780b979e07ad;hp=ebbf6ab2792d6c63cc9d4c308c18dd5a8c76b669;hb=d3558060276fd0cd604b984d7c30780a09b9b493;hpb=ead887f4e331f73732898ff6bf4d6440cb50cfc3 diff --git a/compiler/src/exe/tiger_tests.ml b/compiler/src/exe/tiger_tests.ml index ebbf6ab..e2015e9 100644 --- a/compiler/src/exe/tiger_tests.ml +++ b/compiler/src/exe/tiger_tests.ml @@ -158,7 +158,11 @@ end = struct p_indent 2; p "out: %s" parsing_out; p_ln (); ); p "%s" bar_end; p_ln (); - exit !error_count + let error_count = !error_count in + let clr = (if error_count = 0 then Green else Red) in + p "Errors: %s" (color clr (string_of_int error_count)); p_ln (); + p "%s" bar_end; p_ln (); + exit error_count end let test_cases_from_book =