glibc/posix
Joseph Myers 7f98f1806a Split up rules for tests using mtrace and something else.
Most glibc tests that use mtrace to verify that there were no memory
leaks from the glibc facilities used in a given test depend on the
.out file of the previous test so that the mtrace test runs mtrace and
nothing else.

Two, however, have a single target combining mtrace with something
else.  In the case of libio/tst-fopenloc.check, the test both compares
the output with an expected baseline and runs mtrace.  In the case of
posix/tst-rxspencer-mem, the test is run (with different command line
from the main run) and then mtrace is run, from the same makefile
target.

This patch splits both of these tests up to use separate makefile
targets for each thing tested; in the tst-rxspencer case, a file
tst-rxspencer-no-utf8.c is created that just includes tst-rxspencer.c,
as is usual for tests where the same code gets tested in different
compile-time or runtime configurations.

Adding $(evaluate-test) to test commands, as in
<https://sourceware.org/ml/libc-alpha/2014-01/msg00194.html>, will no
longer need to insert && between multiple commands, as all tests will
either have just a single command or already use &&.

Tested x86_64.

	* libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
	separate $(objpfx)tst-fopenloc-cmp.out and
	$(objpfx)tst-fopenloc-mem.out targets.
	(tests): Update dependencies.
	* posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
	(generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
	tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
	(tst-rxspencer-no-utf8-ARGS): New variable.
	(tst-rxspencer-no-utf8-ENV): Likewise.
	(tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
	instead of $(objpfx)tst-rxspencer-mem.
	($(objpfx)tst-rxspencer-mem): Change target to
	$(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
	$(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
	* posix/tst-rxspencer-no-utf8.c: New file.
2014-02-14 13:45:14 +00:00
..
bits Combine __USE_BSD and __USE_SVID into __USE_MISC. 2014-02-12 23:41:01 +00:00
rxspencer
sys Combine __USE_BSD and __USE_SVID into __USE_MISC. 2014-02-12 23:41:01 +00:00
_exit.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
alarm.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
annexc.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
BOOST.tests
bsd-getpgrp.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-ga1.c
bug-ga2.c
bug-getopt1.c
bug-getopt2.c
bug-getopt3.c
bug-getopt4.c
bug-getopt5.c
bug-glob1.c
bug-glob2.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-glob3.c
bug-regex1.c
bug-regex2.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex3.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex4.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex5.c Add #include <stdint.h> for uint[32|64]_t usage (except installed headers). 2013-05-16 11:32:54 -05:00
bug-regex6.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex7.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex8.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex9.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex10.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex11.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex12.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex13.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex14.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex15.c
bug-regex16.c
bug-regex17.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex18.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex19.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex20.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex21.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex22.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex23.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex24.c
bug-regex25.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex26.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex27.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex28.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex29.c
bug-regex30.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex31.c
bug-regex31.input
bug-regex32.c
bug-regex33.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex34.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
bug-regex35.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
confstr.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
cpio.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
Depend
environ.c
execl.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
execle.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
execlp.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
execv.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
execve.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
execvp.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
execvpe.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fexecve.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fnmatch_loop.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fnmatch.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
fnmatch.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fork.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fpathconf.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
gai_strerror.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
gai.conf [BZ #11438] 2012-09-28 10:15:05 -06:00
get_child_max.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getaddrinfo.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getconf-speclist.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getconf.c Update remaining copyright dates 2014-01-01 22:02:55 +10:00
getegid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
geteuid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getgid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getgroups.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getopt1.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getopt_init.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getopt_int.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getopt.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
getopt.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getpgid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getpgrp.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getpid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getppid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getresgid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getresuid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getsid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getuid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
glob64.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
glob.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
glob.h Combine __USE_BSD and __USE_SVID into __USE_MISC. 2014-02-12 23:41:01 +00:00
globtest.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
globtest.sh Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
group_member.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
init-posix.c
Makefile Split up rules for tests using mtrace and something else. 2014-02-14 13:45:14 +00:00
nanosleep.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
pathconf.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
pause.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
PCRE.tests
posix_madvise.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
posix-envs.def Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
pread64.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
pread.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
ptestcases.h
PTESTS
PTESTS2C.sed
pwrite64.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
pwrite.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
re_comp.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
regcomp.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
regex_internal.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
regex_internal.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
regex.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
regex.h Combine __USE_BSD and __USE_SVID into __USE_MISC. 2014-02-12 23:41:01 +00:00
regexbug1.c
regexec.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
runptests.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
runtests.c
sched_cpualloc.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sched_cpucount.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sched_cpufree.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sched_getaffinity.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sched_getp.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sched_gets.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sched_primax.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sched_primin.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sched_rr_gi.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sched_setaffinity.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sched_setp.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sched_sets.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sched_yield.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sched.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
setgid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
setpgid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
setpgrp.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
setresgid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
setresuid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
setsid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
setuid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sleep.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawn_faction_addclose.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawn_faction_adddup2.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawn_faction_addopen.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawn_faction_destroy.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawn_faction_init.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawn_int.h
spawn.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawn.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawnattr_destroy.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawnattr_getdefault.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawnattr_getflags.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawnattr_getpgroup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawnattr_getschedparam.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawnattr_getschedpolicy.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawnattr_getsigmask.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawnattr_init.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawnattr_setdefault.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawnattr_setflags.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawnattr_setpgroup.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawnattr_setschedparam.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawnattr_setschedpolicy.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawnattr_setsigmask.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawni.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
spawnp.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
sysconf.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tar.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
test-vfork.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
testcases.h
testfnm.c
TESTS
TESTS2C.sed
times.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
transbug.c Fix executable mode. 2013-06-06 02:15:33 +02:00
tst-boost.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-chmod.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-cpucount.c
tst-cpuset.c
tst-dir.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-exec-static.c Support run tst-exec and tst-spawn directly 2013-01-10 14:14:55 -08:00
tst-exec.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-execl1.c
tst-execl2.c
tst-execle1.c
tst-execle2.c
tst-execlp1.c
tst-execlp2.c
tst-execv1.c
tst-execv2.c
tst-execve1.c
tst-execve2.c
tst-execvp1.c
tst-execvp2.c
tst-execvp3.c
tst-execvp4.c
tst-fnmatch2.c
tst-fnmatch.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-fnmatch.input Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-fork.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-getaddrinfo2.c
tst-getaddrinfo3.c
tst-getaddrinfo4.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-getaddrinfo.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-getconf.sh Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-getlogin.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-getopt_long1.c
tst-gnuglob.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-mmap.c
tst-nanosleep.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-nice.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-pathconf.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-pcre.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-preadwrite64.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-preadwrite.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-regex2.c
tst-regex.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-regexloc.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-rfc3484-2.c Add #include <stdint.h> for uint[32|64]_t usage (except installed headers). 2013-05-16 11:32:54 -05:00
tst-rfc3484-3.c Add #include <stdint.h> for uint[32|64]_t usage (except installed headers). 2013-05-16 11:32:54 -05:00
tst-rfc3484.c Add #include <stdint.h> for uint[32|64]_t usage (except installed headers). 2013-05-16 11:32:54 -05:00
tst-rxspencer-no-utf8.c Split up rules for tests using mtrace and something else. 2014-02-14 13:45:14 +00:00
tst-rxspencer.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-spawn-static.c Support run tst-exec and tst-spawn directly 2013-01-10 14:14:55 -08:00
tst-spawn.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-sysconf.c
tst-truncate64.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-truncate.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-vfork1.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-vfork2.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-vfork3.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tst-waitid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
tstgetopt.c
uname.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
unistd.h Clean up trivially redundant __USE_MISC conditionals. 2014-02-13 22:07:53 +00:00
Versions Move getlogin, getlogin_r, setlogin to login/ subdir. 2013-05-06 15:10:09 -07:00
vfork.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
wait3.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
wait4.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
wait.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
wait.h
waitid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
waitpid.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
wordexp-test.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
wordexp-tst.sh Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
wordexp.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
wordexp.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00