diff options
author | Alan Modra <amodra@gmail.com> | 2020-06-15 12:58:26 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-06-15 15:07:13 +0930 |
commit | 1298463902e9c367c8a3751c11d9cc9ecd0b015b (patch) | |
tree | b5bcde4cecd6aac9ae901a56eabd521088704158 /ld/testsuite/ld-discard/discard.exp | |
parent | ea4b3731ecd4b00afa199cdcf988e6b1c706f7de (diff) | |
download | gdb-1298463902e9c367c8a3751c11d9cc9ecd0b015b.zip gdb-1298463902e9c367c8a3751c11d9cc9ecd0b015b.tar.gz gdb-1298463902e9c367c8a3751c11d9cc9ecd0b015b.tar.bz2 |
Unnecessary load_lib in ld testsuite
ld-lib.exp is loaded in config/defaults.exp
* testsuite/ld-scripts/include.exp: Don't load ld-lib.exp.
* testsuite/ld-scripts/phdrs3.exp: Likewise.
* testsuite/ld-scripts/rgn-at.exp: Likewise.
* testsuite/ld-scripts/rgn-over.exp: Likewise.
* testsuite/ld-scripts/sort.exp: Likewise.
* testsuite/ld-discard/discard.exp: Likewise. Use is_elf_format.
Diffstat (limited to 'ld/testsuite/ld-discard/discard.exp')
-rw-r--r-- | ld/testsuite/ld-discard/discard.exp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/ld/testsuite/ld-discard/discard.exp b/ld/testsuite/ld-discard/discard.exp index 52c7de6..ad1ebf4 100644 --- a/ld/testsuite/ld-discard/discard.exp +++ b/ld/testsuite/ld-discard/discard.exp @@ -25,17 +25,10 @@ # Test for ELF here, so we don't have to qualify on ELF specifically # in every .d-file. -if { ![istarget *-*-linux*] - && ![istarget *-*-gnu*] - && ![istarget *-*-nacl*] - && ![istarget hppa*64*-*-hpux*] - && ![istarget arm*-*-uclinuxfdpiceabi] - && ![istarget *-*-elf] } { +if { ![is_elf_format] } { return } -load_lib ld-lib.exp - set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]] for { set i 0 } { $i < [llength $test_list] } { incr i } { # We need to strip the ".d", but can leave the dirname. |