test/testutil: Clean up test report text
This is a cosmetic change.  The test report text was difficult to read
due to some excess newline characters.  Now, each test case report only
occupies a single line.
@@ -173,7 +173,7 @@ tu_case_append_file_info(const char *file, int line)
{
int rc;
- rc = tu_case_append_buf("|%s:%d| ", file, line);
+ rc = tu_case_append_buf("[%s:%d] ", file, line);
assert(rc == 0);
}
@@ -221,7 +221,7 @@ tu_case_fail_assert(int fatal, const char *file, int line,
tu_case_append_assert_msg(expr);
if (format != NULL) {
- rc = tu_case_append_buf("\n");
+ rc = tu_case_append_buf("; ");
assert(rc == 0);
va_start(ap, format);
@@ -230,9 +230,6 @@ tu_case_fail_assert(int fatal, const char *file, int line,
va_end(ap);
}
- rc = tu_case_append_buf("\n");
- assert(rc == 0);
-
tu_case_fail();
if (fatal) {
