summaryrefslogtreecommitdiff
path: root/libphobos/testsuite/libphobos.phobos_shared/phobos_shared.exp
diff options
context:
space:
mode:
Diffstat (limited to 'libphobos/testsuite/libphobos.phobos_shared/phobos_shared.exp')
-rw-r--r--libphobos/testsuite/libphobos.phobos_shared/phobos_shared.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libphobos/testsuite/libphobos.phobos_shared/phobos_shared.exp b/libphobos/testsuite/libphobos.phobos_shared/phobos_shared.exp
index 43b9772d6f2..a00ecf11ac9 100644
--- a/libphobos/testsuite/libphobos.phobos_shared/phobos_shared.exp
+++ b/libphobos/testsuite/libphobos.phobos_shared/phobos_shared.exp
@@ -19,6 +19,11 @@ if { ![isnative] || ![is-effective-target shared] } {
return
}
+# Skip running test if phobos was not built on the target.
+if { ![is-effective-target d_runtime_has_std_library] } {
+ return
+}
+
# Gather a list of all tests.
set tests [lsort [filter_libphobos_unittests [find $srcdir/../src "*.d"]]]