glibc/argp
Gabriel F. T. Gomes 43257c335a Use TEST_COMPARE_STRING in recently added test
The commit

commit 1df872fd74
Author: Florian Weimer <fweimer@redhat.com>
Date:   Wed Nov 7 12:42:44 2018 +0100

    support: Implement TEST_COMPARE_STRING

added the new macro TEST_COMPARE_STRING, which compares the output of
functions under test against expected strings, and, when there's a
mismatch, automatically reports an error and prints the differences.
This patch adapts recently added test cases to use this new macro.

Tested for powerpc64le (as is, and locally patched to intentionally fail
and produce error output).

	* argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
	instead of manually comparing and reporting mismatching strings.
	* misc/tst-ldbl-error.c (do_one_test): Likewise.
	* misc/tst-ldbl-warn.c (do_one_test): Likewise.
2018-11-08 22:42:01 -02:00
..
Makefile Add tests for argp_error and argp_failure with floating-point parameters 2018-11-06 11:19:54 -02:00
Versions Update ABI information 2012-01-07 19:23:45 -05:00
argp-ba.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp-eexst.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp-fmtstream.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp-fmtstream.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp-fs-xinl.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp-help.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp-namefrob.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp-parse.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp-pv.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp-pvh.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp-test.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp-xinl.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
argp.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
bug-argp1.c * posix/wordexp.c (w_addword): Free word if realloc fails and it 2006-05-10 00:03:41 +00:00
bug-argp2.c Add test case for last argp bug. 2010-04-04 11:28:36 -07:00
tst-argp1.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-argp2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
tst-ldbl-argp.c Use TEST_COMPARE_STRING in recently added test 2018-11-08 22:42:01 -02:00