aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-ifunc
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2014-11-20 08:59:42 -0800
committerH.J. Lu <hjl.tools@gmail.com>2014-11-20 08:59:42 -0800
commitc22ee0ad9de7efff74942263c71b1878003e3eda (patch)
tree4b614bae982103d3a5af7045fdf0b39cd0e23f54 /ld/testsuite/ld-ifunc
parent43f3e411c415ac74130808a76473e05ff41a1d94 (diff)
downloadgdb-c22ee0ad9de7efff74942263c71b1878003e3eda.zip
gdb-c22ee0ad9de7efff74942263c71b1878003e3eda.tar.gz
gdb-c22ee0ad9de7efff74942263c71b1878003e3eda.tar.bz2
Run IFUNC run-time tests only if IFUNC is supported
* lib/ld-lib.exp (check_ifunc_available): New. * ld-ifunc/ifunc.exp: Run IFUNC run-time tests only if IFUNC is supported.
Diffstat (limited to 'ld/testsuite/ld-ifunc')
-rw-r--r--ld/testsuite/ld-ifunc/ifunc.exp22
1 files changed, 15 insertions, 7 deletions
diff --git a/ld/testsuite/ld-ifunc/ifunc.exp b/ld/testsuite/ld-ifunc/ifunc.exp
index 3faced1..d2382f8 100644
--- a/ld/testsuite/ld-ifunc/ifunc.exp
+++ b/ld/testsuite/ld-ifunc/ifunc.exp
@@ -404,6 +404,21 @@ run_ld_link_exec_tests [] [list \
"ifunc-common-1.out" \
"-g" \
] \
+]
+
+set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
+foreach t $test_list {
+ # We need to strip the ".d", but can leave the dirname.
+ verbose [file rootname $t]
+ run_dump_test [file rootname $t]
+}
+
+# Run-time tests which require working IFUNC support.
+if { ![check_ifunc_available] } {
+ return
+}
+
+run_ld_link_exec_tests [] [list \
[list \
"Run pr16467" \
"tmpdir/pr16467c.o tmpdir/libpr16467b.so tmpdir/libpr16467a.so" \
@@ -414,10 +429,3 @@ run_ld_link_exec_tests [] [list \
"" \
] \
]
-
-set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
-foreach t $test_list {
- # We need to strip the ".d", but can leave the dirname.
- verbose [file rootname $t]
- run_dump_test [file rootname $t]
-}