Run IFUNC run-time tests only if IFUNC is supported
[deliverable/binutils-gdb.git] / ld / testsuite / ld-ifunc / ifunc.exp
index 3faced1b16ae84b3bf25e7745486eb24acc62844..d2382f891bae4d1685ef882cec9fe2be7857bb65 100644 (file)
@@ -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]
-}
This page took 0.025598 seconds and 4 git commands to generate.