diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2017-12-08 10:42:47 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2017-12-21 18:19:38 +0000 |
commit | d9483eb79086970df1dd875f6914bd0a442e8566 (patch) | |
tree | 3a97ef1d0950250a8f4ede8405f4ead72de66cd7 | |
parent | 40c8991ec8962c1012ced64bb4e4b01f343fe293 (diff) |
Explicitly remove test files in run-strip-remove-keep.shQtCreator4.7.2QtCreator4.7.1QtCreator4.7.0-beta2QtCreator4.7.0-beta1QtCreator4.7.0QtCreator4.11.14.7
strip moves the output files into place by calling rename(). On windows
you cannot rename a file if the target file already exists.
Change-Id: Ia296c1a357fa8e3610989f77b8149444e0863456
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rwxr-xr-x | tests/run-strip-remove-keep.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/run-strip-remove-keep.sh b/tests/run-strip-remove-keep.sh index 92647fa7..b0183e7c 100755 --- a/tests/run-strip-remove-keep.sh +++ b/tests/run-strip-remove-keep.sh @@ -109,6 +109,8 @@ Section Headers: EOF +testrun rm testfile.debug testfile.elf + # Explicitly keep .symtab (pulls in .strtab, so they will both be in elf). 32bit echo strip --keep-section=.symtab testfile testrun ${abs_top_builddir}/src/strip --keep-section=.symtab -o testfile.elf -f testfile.debug testfile @@ -196,6 +198,8 @@ Section Headers: EOF +testrun rm testfile.elf testfile.debug + # A random 64bit testfile testfiles testfile69.so # Explicitly keep .strtab (but not .symtab, so .strtab will be in both). 64bit @@ -276,6 +280,8 @@ Section Headers: EOF +testrun rm testfile.elf testfile.debug + # Explicitly keep .symtab (pulls in .strtab, so they will both be in elf). 64bit # Use --remove-comment to make sure testfile.debug isn't empty. echo strip --keep-section=.symtab --remove-comment testfile69.so @@ -355,6 +361,8 @@ Section Headers: EOF +testrun rm testfile.elf testfile.debug + # Explicitly remove .symtab (but not .strtab, so it will be in both). 32bit echo strip -g --remove-section=.symtab testfile testrun ${abs_top_builddir}/src/strip -g --remove-section=.symtab -o testfile.elf -f testfile.debug testfile @@ -442,6 +450,8 @@ Section Headers: EOF +testrun rm testfile.elf testfile.debug + # Explicitly remove both .symtab and .strtab. Keep .stab and .stabstr 32bit echo strip -g --remove-section=".s[yt][mr]tab" --keep-section=".stab*" testfile testrun ${abs_top_builddir}/src/strip -g --remove-section=".s[yt][mr]tab" --keep-section=".stab*" -o testfile.elf -f testfile.debug testfile @@ -530,6 +540,8 @@ Section Headers: EOF +testrun rm testfile.elf testfile.debug + # Explicitly remove .symtab (but not .strtab, so it will be in both). 64bit echo strip -g --remove-section=.symtab testfile69.so testrun ${abs_top_builddir}/src/strip -g --remove-section=.symtab -o testfile.elf -f testfile.debug testfile69.so @@ -608,6 +620,8 @@ Section Headers: EOF +testrun rm testfile.elf testfile.debug + # Explicitly remove both .symtab and .strtab. Keep .comment section. 64bit echo strip -g --remove-section=".s[yt][mr]tab" --keep-section=.comment testfile69.so testrun ${abs_top_builddir}/src/strip -g --remove-section=".s[yt][mr]tab" --keep-section=.comment -o testfile.elf -f testfile.debug testfile69.so |