binutils objcopy test tidy
authorAlan Modra <amodra@gmail.com>
Thu, 15 Oct 2015 11:07:13 +0000 (21:37 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 15 Oct 2015 13:08:29 +0000 (23:38 +1030)
commit21c40443ce8b12faa085149ba8a30b33193f6cc7
tree34baa55bde1908d49ef27f1d763aef2f88586f38
parent7b19bec22f266f2e1fab6528f166912328b999b6
binutils objcopy test tidy

The main aim of this patch is to perform more objcopy tests when we
can build executables but not run them.  ie. non-native with cross
compiler available.

* binutils-all/objcopy.exp: Delete trailing whitespace.  Use
"string equal" rather than "string match" when making simple
string comparisons.  Revert 2008-07-08 host_triplet checks.
Perform non-run tests when we can build executable.
(strip_executable, strip_executable_with_saving_a_symbol): Move
run test later.  Take extra param on whether to perform run test.
Update callers.
(keep_debug_symbols_and_test_copy): Delete unused vars.
binutils/testsuite/ChangeLog
binutils/testsuite/binutils-all/objcopy.exp