Change exit code to number of tests failed instead of hardcoded zero.
authorJonathan Pobst <monkey@jpobst.com>
Tue, 16 Dec 2008 19:10:00 +0000 (19:10 -0000)
committerJonathan Pobst <monkey@jpobst.com>
Tue, 16 Dec 2008 19:10:00 +0000 (19:10 -0000)
svn path=/trunk/mono/; revision=121623

eglib/test/driver.c

index 3f3ea84e2f9f5b967e408def8f3931adb679e694..b33421bf2bec9c7ecea2093361a24733213fc962 100644 (file)
@@ -238,7 +238,7 @@ gint main(gint argc, gchar **argv)
                string_array_free(tests_to_run);
        }
 
-       return 0;
+       return global_tests - global_passed;
 }