summaryrefslogtreecommitdiff
path: root/misc/tst-ldbl-warn.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/tst-ldbl-warn.c')
-rw-r--r--misc/tst-ldbl-warn.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/misc/tst-ldbl-warn.c b/misc/tst-ldbl-warn.c
index 3ac0e4c873..69a528755c 100644
--- a/misc/tst-ldbl-warn.c
+++ b/misc/tst-ldbl-warn.c
@@ -61,11 +61,7 @@ do_one_test (int select, const char *format, va_list args,
/* Close the in-memory stream and check the output buffer. */
xfclose_memstream (&stream);
- if (strcmp (stream.buffer, expected) != 0)
- FAIL_EXIT1 ("error:\n"
- " expected: '%s'\n"
- " actual: '%s'\n",
- expected, stream.buffer);
+ TEST_COMPARE_STRING (stream.buffer, expected);
if (stream.buffer != NULL)
free (stream.buffer);