* ld-elf/shared.exp: Update regexp on --no-add-needed and
authorAlan Modra <amodra@gmail.com>
Thu, 4 Apr 2013 14:51:48 +0000 (14:51 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 4 Apr 2013 14:51:48 +0000 (14:51 +0000)
--no-copy-dt-needed-entries tests.

ld/testsuite/ChangeLog
ld/testsuite/ld-elf/shared.exp

index 493084de52ae009aaf6341e7f20ce74d3bbec4d0..842743a2fe17da2d6c67b05c98a5a327a571a6ec 100644 (file)
@@ -1,3 +1,8 @@
+2013-04-04  Alan Modra  <amodra@gmail.com>
+
+       * ld-elf/shared.exp: Update regexp on --no-add-needed and
+       --no-copy-dt-needed-entries tests.
+
 2013-04-03  Alan Modra  <amodra@gmail.com>
 
        PR ld/15227
index 8a7590a1002fdc3b2a25c4896d9f33d4e44bf8a2..89409fad3f9a0edfd89f3244be008bd963691ec4 100644 (file)
@@ -361,14 +361,14 @@ run_ld_link_exec_tests [list "*-*-netbsdelf*"] $run_tests
 # Check --no-add-needed and --no-copy-dt-needed-entries
 set testname "--no-add-needed"
 set exec_output [run_host_cmd "$CC" "$gcc_gas_flag $gcc_ld_flag tmpdir/libneeded1c.o -Wl,--no-add-needed,-rpath-link=tmpdir -Ltmpdir -lneeded1a"]
-if { [ regexp "'bar' is defined in DSO tmpdir/libneeded1b.so" $exec_output ] } {
+if { [ regexp "tmpdir/libneeded1b.so: .*: DSO missing" $exec_output ] } {
     pass $testname
 } {
     fail $testname
 }
 set testname "--no-copy-dt-needed-entries"
 set exec_output [run_host_cmd "$CC" "$gcc_gas_flag $gcc_ld_flag tmpdir/libneeded1c.o -Wl,--no-copy-dt-needed-entries,-rpath-link=tmpdir -Ltmpdir -lneeded1a"]
-if { [ regexp "'bar' is defined in DSO tmpdir/libneeded1b.so" $exec_output ] } {
+if { [ regexp "tmpdir/libneeded1b.so: .*: DSO missing" $exec_output ] } {
     pass $testname
 } {
     fail $testname