diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | io/ftwtest-sh | 4 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2015-10-21 Joseph Myers <joseph@codesourcery.com> + + * io/ftwtest-sh: Also trap on exit to remove temporary files. + 2015-10-21 H.J. Lu <hongjiu.lu@intel.com> * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace diff --git a/io/ftwtest-sh b/io/ftwtest-sh index 478171d..8669eab 100644 --- a/io/ftwtest-sh +++ b/io/ftwtest-sh @@ -45,7 +45,7 @@ export LC_ALL tmp=${objpfx}io tmpdir=$tmp/ftwtest.d -trap 'chmod -fR a+x $tmpdir; rm -fr $tmpdir $testout' 1 2 3 15 +trap 'chmod -fR a+x $tmpdir; rm -fr $tmpdir $testout' 0 1 2 3 15 if test -d $tmpdir; then chmod -fR a+x $tmpdir @@ -296,4 +296,6 @@ rm $testout rm -fr $tmpdir +trap '' 0 + exit 0 |