Get rid of compiler warnings for runtests
This commit is contained in:
parent
efdcb2e6ec
commit
eaf65f1d9d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user