summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2018-07-20 10:52:04 +0200
committerUlf Hermann <[email protected]>2018-07-20 15:18:19 +0000
commit314976578cf6027c075295b7fdb2e9115b3b1fd8 (patch)
treeefdaf2031f8f9c42cb3715a1fdce9d080d42ff07 /tests
parent75bd5fdb30346f5567b982b128689e41d5ac7f15 (diff)
Remove files before regenerating them in run-strip-g test
On windows, strip cannot overwrite files. Change-Id: I2cf1384b18daec71f079238cf274bce08bdc209b Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run-strip-g.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/run-strip-g.sh b/tests/run-strip-g.sh
index 0834c7c3..de893252 100755
--- a/tests/run-strip-g.sh
+++ b/tests/run-strip-g.sh
@@ -56,6 +56,7 @@ fi
# arm (with data marker in .debug_frame). See tests/run-addrcfi.sh
testfiles testfilearm
+rm -f strip.out debug.out readelf.out
echo arm strip -g to file with debug file
testrun ${abs_top_builddir}/src/strip -g -o strip.out -f debug.out testfilearm ||
{ echo "*** failed to strip -g -o strip.out -f debug.out testfilearm"; exit -1; }
@@ -81,6 +82,7 @@ fi
# aarch64 (with data marker in .debug_frame). See tests/run-addrcfi.sh
testfiles testfileaarch64
+rm -f strip.out debug.out readelf.out
echo aarch64 strip -g to file with debug file
testrun ${abs_top_builddir}/src/strip -g -o strip.out -f debug.out testfileaarch64 ||
{ echo "*** failed to strip -g -o strip.out -f debug.out testfileaarch64"; exit -1; }