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);
switch(xit) {
case EXIT_OK:
fputs(" OK", test_info.errout);
fputs(" (OK)", test_info.errout);
break;
case EXIT_WARNING:
fputs(" WARNING", test_info.errout);
fputs(" (WARNING)", test_info.errout);
break;
case EXIT_CRITICAL:
fputs(" CRITICAL", test_info.errout);
fputs(" (CRITICAL)", test_info.errout);
break;
case EXIT_UNKNOWN:
fputs(" UNKNOWN", test_info.errout);
fputs(" (UNKNOWN)", test_info.errout);
break;
case EXIT_USAGE:
@ -1304,7 +1304,7 @@ int main(int ac, char *av[])
break;
default:
fputs(" ???", test_info.errout);
fputs(" (\?\?\?)", test_info.errout);
break;
}
fputc('\n', test_info.errout);