summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2017-05-04 18:01:54 +0200
committerUlf Hermann <[email protected]>2017-05-08 12:14:12 +0000
commit848044155a3f227f13ccb4830efcf32f6773ece9 (patch)
tree81f6dd976faa873ee19504c0afc895eb38c1bd41 /tests
parentd83dee7edd0c00d39e4cff2e303938d5d3e487c1 (diff)
Remove previous test files before running the next round
strip explicitly creates the new files. This will not work on windows if the files already exist. Change-Id: Icdedcd61d26c390669c5c4915ce84e91a9044f20 Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r--tests/ChangeLog5
-rwxr-xr-xtests/run-strip-reloc.sh2
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index f43aeba9..1a77c026 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -6,6 +6,11 @@
2017-05-04 Ulf Hermann <[email protected]>
+ * run-strip-reloc.sh: Remove previous testfiles before running the
+ next test.
+
+2017-05-04 Ulf Hermann <[email protected]>
+
* elfstrmerge.c: Use 07777 instead of ALLPERMS.
2017-05-04 Ulf Hermann <[email protected]>
diff --git a/tests/run-strip-reloc.sh b/tests/run-strip-reloc.sh
index 50dddbf8..f44991dd 100755
--- a/tests/run-strip-reloc.sh
+++ b/tests/run-strip-reloc.sh
@@ -32,6 +32,8 @@ runtest() {
outfile2=out.stripped2
debugfile2=out.debug2
+ rm -f $outfile1 $debugfile1 $outfile2 $debugfile2
+
testrun ${abs_top_builddir}/src/strip -o $outfile1 -f $debugfile1 $infile ||
{ echo "*** failure strip $infile"; status=1; }