From 314976578cf6027c075295b7fdb2e9115b3b1fd8 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 20 Jul 2018 10:52:04 +0200 Subject: Remove files before regenerating them in run-strip-g test On windows, strip cannot overwrite files. Change-Id: I2cf1384b18daec71f079238cf274bce08bdc209b Reviewed-by: Christian Kandeler --- tests/run-strip-g.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') 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; } -- cgit v1.2.3