Skip to content

Commit

Permalink
Remove previous test files before running the next round
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Ulf Hermann authored and Mark Wielaard committed Jul 17, 2018
1 parent c1d7a08 commit 1b548ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2018-07-16 Ulf Hermann <[email protected]>

* run-strip-reloc.sh: Remove previous testfiles before running the
next test.

2018-07-17 Mark Wielaard <[email protected]>

* hello_riscv64.ko.bz2: Updated with debuginfo.
Expand Down
2 changes: 2 additions & 0 deletions tests/run-strip-reloc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down

0 comments on commit 1b548ea

Please sign in to comment.