[PATCH] tests: stat: fix clean up of sample file

Mike Frysinger vapier at gentoo.org
Thu May 2 19:35:40 UTC 2013


* tests/stat: Also rm the sample file at the end of the test.
---
 tests/stat | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/stat b/tests/stat
index d2abed0..5fe0b86 100755
--- a/tests/stat
+++ b/tests/stat
@@ -35,4 +35,6 @@ $STRACE -efile find sample > /dev/null 2> check.log &&
 LC_ALL=C grep '^[[:alnum:]_]*stat[[:alnum:]_]*([^()"]*"sample", {st_mode=S_IFREG|0644, st_size=46118400000, \.\.\.}' check.log > /dev/null ||
 	{ cat check.log; fail_ 'strace -efile failed to trace newfstatat/fstatat64 properly'; }
 
+rm -f sample
+
 exit 0
-- 
1.8.2.1





More information about the Strace-devel mailing list