diff --git a/lcthw-remnants-2/c-skeleton/tests/runtests.c b/lcthw-remnants-2/c-skeleton/tests/runtests.c index 82068ae..9e39d3a 100644 --- a/lcthw-remnants-2/c-skeleton/tests/runtests.c +++ b/lcthw-remnants-2/c-skeleton/tests/runtests.c @@ -20,7 +20,7 @@ int run_tests_file(char *filename) return -1; } -int main(int argc, char *argv[]) +int main(void) { int entcount = 0; int rc = 0; @@ -72,7 +72,7 @@ int main(int argc, char *argv[]) printf("ERROR in test %s: here's tests/tests.log\n", filename); printf("------\n"); - system("tail tests/tests.log"); + rc = system("tail tests/tests.log"); goto error; } @@ -90,5 +90,5 @@ error: free(namelist); } - return 1; + return rc != 0 ? rc : 1; }