diff options
| author | Ulf Hermann <[email protected]> | 2018-07-16 12:01:21 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2018-07-17 12:30:38 +0200 |
| commit | 1b548ea9eea29915510a361c24a6eb98fa0b6a6d (patch) | |
| tree | 9c73031274418da4dfb8ca1df8175d0cc7355c78 /tests | |
| parent | c1d7a08c990a13472b64281dbf79b13fb74f9e5a (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.
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]>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ChangeLog | 5 | ||||
| -rwxr-xr-x | tests/run-strip-reloc.sh | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index 5a9dc33b..f8b69bee 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -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. diff --git a/tests/run-strip-reloc.sh b/tests/run-strip-reloc.sh index 292e9082..bbc9f586 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; } |
