glibc/rt
Joseph Myers cf1455657e Do not leave files behind in /tmp from testing.
I noticed that glibc testsuite runs left several files behind in /tmp
(or TMPDIR, if different).  The problem was testcases that generate a
template for mkstemp / mkstemp64, ending with XXXXXX, then pass that
template to add_temp_file before calling mkstemp / mkstemp64, meaning
that the template ending with XXXXXX is stored in the list of
temporary files to delete (add_temp_file uses strdup so that the
original string doesn't need to stay live), not the actual filename as
determined by mkstemp / mkstemp64.  This patch fixes those tests to
call add_temp_file later.

Tested for x86_64 (that the files are no longer left behind by a
testsuite run and the modified tests still pass).

	* io/test-lfs.c (do_prepare): Do not call add_temp_file until
	after mkstemp64.
	* login/tst-utmp.c (do_prepare): Likewise.
	* rt/tst-aio.c (do_prepare): Likewise.
	* rt/tst-aio64.c (do_prepare): Likewise.
2015-10-15 22:29:06 +00:00
..
bits Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
aio_cancel.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
aio_error.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
aio_fsync.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
aio_misc.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
aio_notify.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
aio_read64.c * elf/cache.c: Use <> rather than "" #includes. 2005-12-21 22:16:34 +00:00
aio_read.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
aio_return.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
aio_sigqueue.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
aio_suspend.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
aio_write64.c * elf/cache.c: Use <> rather than "" #includes. 2005-12-21 22:16:34 +00:00
aio_write.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
aio.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
clock_getcpuclockid.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
clock_getres.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
clock_gettime.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
clock_nanosleep.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
clock_settime.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
clock-compat.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Depend Don't mention linuxthreads in Depend files. 2014-05-21 16:53:11 +00:00
get_clockfreq.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
lio_listio64.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
lio_listio.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Makefile Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
mq_close.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
mq_getattr.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
mq_notify.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
mq_open.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
mq_receive.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
mq_send.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
mq_setattr.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
mq_timedreceive.c Fix mq_receive, mq_send mq_timed* namespace (bug 18545). 2015-06-17 20:19:04 +00:00
mq_timedsend.c Fix mq_receive, mq_send mq_timed* namespace (bug 18545). 2015-06-17 20:19:04 +00:00
mq_unlink.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
mqueue.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
shm_open.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
shm_unlink.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
timer_create.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
timer_delete.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
timer_getoverr.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
timer_gettime.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
timer_settime.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-aio2.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-aio3.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-aio4.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-aio5.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-aio6.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-aio7.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-aio8.c (do_test): aio_offset should be initialized, too. 2006-01-05 00:26:42 +00:00
tst-aio9.c * sysdeps/pthread/aio_misc.h [!DONT_USE_BOOTSTRAP_MAP] 2006-01-06 03:08:04 +00:00
tst-aio10.c * rt/Makefile (tests): Add tst-aio9 and tst-aio10. 2006-01-06 04:13:26 +00:00
tst-aio64.c Do not leave files behind in /tmp from testing. 2015-10-15 22:29:06 +00:00
tst-aio.c Do not leave files behind in /tmp from testing. 2015-10-15 22:29:06 +00:00
tst-clock2.c [BZ #2978] 2006-08-03 08:17:20 +00:00
tst-clock_nanosleep.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-clock.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-cpuclock1.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-cpuclock2.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-cputimer1.c * rt/tst-cpuclock1.c: New file. 2005-04-27 08:03:47 +00:00
tst-cputimer2.c * rt/tst-cpuclock1.c: New file. 2005-04-27 08:03:47 +00:00
tst-cputimer3.c * rt/tst-cpuclock1.c: New file. 2005-04-27 08:03:47 +00:00
tst-mqueue1.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-mqueue2.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-mqueue3.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-mqueue4.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-mqueue5.c Conditionalize some test code for SIGRTMIN, SA_SIGINFO. 2015-03-04 15:14:56 -08:00
tst-mqueue6.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-mqueue7.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-mqueue8.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-mqueue9.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-mqueue.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-shm.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-timer2.c Don't set unused field in rt/tst-timer2. 2015-02-06 12:30:38 -08:00
tst-timer3.c Update. 2004-04-16 20:44:32 +00:00
tst-timer4.c Conditionalize some test code for SIGRTMIN, SA_SIGINFO. 2015-03-04 15:14:56 -08:00
tst-timer5.c 2004-12-07 Roland McGrath <roland@redhat.com> 2004-12-07 20:44:46 +00:00
tst-timer.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Versions BZ#14743: Move clock_* symbols from librt to libc. 2012-10-24 14:50:46 -07:00