Commit be7fd6ad authored by Chris Müller's avatar Chris Müller

lib: stderr redirection is now appended to logfile in unittests

lib: description output for unittests uses now 70 cells (instead 50).
parent e5973a9b
......@@ -193,18 +193,19 @@ cry_unittest_run(const char* desc, cry_modulechecker handler, const_pointer data
int i = 0;
// Process for running test case
freopen(Testlog, "w+", stderr);
freopen(Testlog, "a", stderr);
if(!Allow)
freopen("/dev/null", "w", stdout);
freopen("/dev/null", "a", stdout);
for(i = 0; i < Repeat; ++i)
handler(data);
fclose(stderr);
if(!Allow)
if(!Allow) {
fclose(stdout);
}
cry_free(Testlog);
......@@ -276,7 +277,7 @@ print_verbose_testprocess_status(const char* desc, int return_code, suseconds_t
snprintf(buffer, 128, "%s (%.3lf ms)", desc, time / 1000.0);
printf("%-50s ", buffer);
printf("%-70s ", buffer);
if(return_code == SIGINT) {
printf(COLOR(Colors, CRY_RED, "TIMEOUT"));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment