[tests] Make test runners exit with errorlevel 1 if a test fails.

This commit is contained in:
Jeroen van Rijn committed 2022-03-03 15:16:16 +01:00
1 parent 8af08f2153
commit 6d9f84ba03
10 files changed
+38 -1

No files matched your search

+3
View File
@@ -57,6 +57,9 @@ main :: proc() {
png_test(&t)
fmt.printf("%v/%v tests successful.\n", TEST_count - TEST_fail, TEST_count)
if TEST_fail > 0 {
os.exit(1)
}
}
PNG_Test :: struct {