]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Remove previous test files before running the next round
authorUlf Hermann <ulf.hermann@qt.io>
Mon, 16 Jul 2018 10:01:21 +0000 (12:01 +0200)
committerMark Wielaard <mark@klomp.org>
Tue, 17 Jul 2018 10:30:38 +0000 (12:30 +0200)
strip explicitly creates the new files. This will not work on windows if
the files already exist.

Also, if strip fails to create the files for any reason, we would check
the previous run's files and succeed. However, the test should fail
then.

Signed-off-by: Ulf Hermann <ulf.hermann@qt.io>
tests/ChangeLog
tests/run-strip-reloc.sh

index 5a9dc33bf0395550d8a1d1f21f5d1f96c732bfdf..f8b69bee6263a569238ab816db2b1d3a81c29f31 100644 (file)
@@ -1,3 +1,8 @@
+2018-07-16  Ulf Hermann  <ulf.hermann@qt.io>
+
+       * run-strip-reloc.sh: Remove previous testfiles before running the
+       next test.
+
 2018-07-17  Mark Wielaard  <mark@klomp.org>
 
        * hello_riscv64.ko.bz2: Updated with debuginfo.
index 292e908286f0204d6a09af03788abb44346b151d..bbc9f5861d0effd0b4d8041374999eab0c2d7b6b 100755 (executable)
@@ -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; }