aboutsummaryrefslogtreecommitdiff
path: root/argp/tst-ldbl-argp.c
diff options
context:
space:
mode:
Diffstat (limited to 'argp/tst-ldbl-argp.c')
-rw-r--r--argp/tst-ldbl-argp.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/argp/tst-ldbl-argp.c b/argp/tst-ldbl-argp.c
index 4465f81..231abeb 100644
--- a/argp/tst-ldbl-argp.c
+++ b/argp/tst-ldbl-argp.c
@@ -73,14 +73,7 @@ do_one_test (const char *expected)
struct support_capture_subprocess result;
result = support_capture_subprocess ((void *) &do_test_call, NULL);
- if (strcmp (result.err.buffer, expected) != 0)
- {
- support_record_failure ();
- printf ("error:\n"
- " expected: '%s'\n"
- " actual: '%s'\n",
- expected, result.err.buffer);
- }
+ TEST_COMPARE_STRING (result.err.buffer, expected);
return 0;
}