Encode exit status words in () to make it clear that it's not part of the sentence.

'Server validates OK' -> 'Server validates (OK)'
This commit is contained in:
Jim Hague 2018-01-16 18:09:35 +00:00
parent 3666d994a7
commit 6bd0f8b980
1 changed files with 5 additions and 5 deletions

View File

@ -1284,19 +1284,19 @@ int main(int ac, char *av[])
exit_value_t xit = f->func(&test_info, av); exit_value_t xit = f->func(&test_info, av);
switch(xit) { switch(xit) {
case EXIT_OK: case EXIT_OK:
fputs(" OK", test_info.errout); fputs(" (OK)", test_info.errout);
break; break;
case EXIT_WARNING: case EXIT_WARNING:
fputs(" WARNING", test_info.errout); fputs(" (WARNING)", test_info.errout);
break; break;
case EXIT_CRITICAL: case EXIT_CRITICAL:
fputs(" CRITICAL", test_info.errout); fputs(" (CRITICAL)", test_info.errout);
break; break;
case EXIT_UNKNOWN: case EXIT_UNKNOWN:
fputs(" UNKNOWN", test_info.errout); fputs(" (UNKNOWN)", test_info.errout);
break; break;
case EXIT_USAGE: case EXIT_USAGE:
@ -1304,7 +1304,7 @@ int main(int ac, char *av[])
break; break;
default: default:
fputs(" ???", test_info.errout); fputs(" (\?\?\?)", test_info.errout);
break; break;
} }
fputc('\n', test_info.errout); fputc('\n', test_info.errout);