glibc/misc
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
..
bits
sys Add <bits/indirect-return.h> 2018-07-24 07:55:47 -07:00
Makefile Add tests with floating-point arguments for err* and verr* functions 2018-11-06 11:22:34 -02:00
Versions Implement allocate_once for atomic initialization with allocation 2018-05-23 15:27:01 +02:00
acct.c
allocate_once.c Implement allocate_once for atomic initialization with allocation 2018-05-23 15:27:01 +02:00
ar.h
brk.c
bug-hsearch1.c
bug18240.c
chflags.c
chroot.c
daemon.c
dirname.c
efgcvt.c
efgcvt_r.c
err.c error, warn, warnx: Use __fxprintf for wide printing [BZ #23519] 2018-08-14 17:54:49 +02:00
err.h
error.c error, warn, warnx: Use __fxprintf for wide printing [BZ #23519] 2018-08-14 17:54:49 +02:00
error.h
fchflags.c
fdatasync.c
fgetxattr.c
flistxattr.c
fremovexattr.c
fsetxattr.c
fstab.c
fstab.h
fsync.c
ftruncate.c
ftruncate64.c
futimes.c
futimesat.c Add missing start-of-file descriptive comment. 2018-03-06 09:21:04 +01:00
getauxval.c
getclktck.c
getdomain.c
getdtsz.c
gethostid.c
gethostname.c
getloadavg.c
getpagesize.c
getpass.c
getsysstats.c
getttyent.c Fix -Os getc_unlocked linknamespace, localplt issues (bug 15105, bug 19463). 2018-02-21 18:01:11 +00:00
getusershell.c
getxattr.c
gtty.c
hsearch.c
hsearch_r.c
ifunc-impl-list.c
init-misc.c
insremque.c
ioctl.c
lgetxattr.c
libgen.h
listxattr.c
llistxattr.c
lremovexattr.c
lsearch.c
lsetxattr.c
lutimes.c
madvise.c
makedev.c Fix -Os gnu_dev_* linknamespace, localplt issues (bug 15105, bug 19463). 2018-02-07 14:57:31 +00:00
mincore.c
mkdtemp.c
mkostemp.c
mkostemp64.c
mkostemps.c
mkostemps64.c
mkstemp.c
mkstemp64.c
mkstemps.c
mkstemps64.c
mktemp.c
mlock.c
mlockall.c
mmap.c
mmap64.c
mntent.c
mntent.h
mntent_r.c
mprotect.c
msync.c
munlock.c
munlockall.c
munmap.c
preadv.c
preadv2.c
preadv64.c
preadv64v2.c
pselect.c
ptrace.c
pwritev.c
pwritev2.c
pwritev64.c
pwritev64v2.c
qefgcvt.c
qefgcvt_r.c
readv.c
reboot.c
regexp.c
regexp.h
remap_file_pages.c
removexattr.c
revoke.c
sbrk.c
search.h
select.c
setdomain.c
setegid.c
seteuid.c
sethostid.c
sethostname.c
setregid.c
setreuid.c
setxattr.c
sgtty.h
sstk.c
stab.h
stty.c
swapoff.c
swapon.c
sync.c
syncfs.c
syscall.c
syscall.h
sysexits.h
syslog.c Fix -Os putc_unlocked, fputc_unlocked linknamespace, localplt issues (bug 15105, bug 19463). 2018-02-21 18:02:24 +00:00
syslog.h
truncate.c
truncate64.c
tsearch.c
tst-allocate_once.c Implement allocate_once for atomic initialization with allocation 2018-05-23 15:27:01 +02:00
tst-atomic-long.c
tst-atomic.c
tst-dirname.c
tst-efgcvt.c
tst-empty.c
tst-error1.c
tst-fdset.c
tst-gethostid.c misc: New test misc/tst-gethostid 2018-09-20 12:03:01 +02:00
tst-hsearch.c
tst-insremque.c
tst-ldbl-error.c Use TEST_COMPARE_STRING in recently added test 2018-11-08 22:42:01 -02:00
tst-ldbl-warn.c Use TEST_COMPARE_STRING in recently added test 2018-11-08 22:42:01 -02:00
tst-makedev.c
tst-mntent-blank-corrupt.c
tst-mntent-blank-passno.c
tst-mntent.c
tst-mntent2.c
tst-preadvwritev-common.c Avoid running some tests if the file system does not support holes 2018-08-21 12:56:53 +02:00
tst-preadvwritev.c
tst-preadvwritev2-common.c Fix tst-preadvwritev2 build failure on HURD 2018-10-23 14:57:02 -03:00
tst-preadvwritev2.c Fix misreported errno on preadv2/pwritev2 (BZ#23579) 2018-09-28 10:08:09 -03:00
tst-preadvwritev64.c Avoid running some tests if the file system does not support holes 2018-08-21 12:56:53 +02:00
tst-preadvwritev64v2.c Fix misreported errno on preadv2/pwritev2 (BZ#23579) 2018-09-28 10:08:09 -03:00
tst-pselect.c
tst-tsearch.c
tst-warn-wide.c error, warn, warnx: Use __fxprintf for wide printing [BZ #23519] 2018-08-14 17:54:49 +02:00
ttyent.h
ttyslot.c
ualarm.c
usleep.c
ustat.c Deprecate ustat syscall interface 2018-05-02 08:43:31 -03:00
utimes.c Add missing start-of-file descriptive comment. 2018-03-06 09:21:04 +01:00
vhangup.c
writev.c