aboutsummaryrefslogtreecommitdiff
path: root/libphobos/testsuite/libphobos.phobos
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2019-04-24 14:17:34 +0000
committerIain Buclaw <ibuclaw@gcc.gnu.org>2019-04-24 14:17:34 +0000
commit540bc8a8b1ff0aeb19ba6ac6304dd2e2075412c7 (patch)
tree269dec9cdc861b0cd772c52879cadfc308231f8e /libphobos/testsuite/libphobos.phobos
parent9fe1940081ab64552a1e9134efda54ecef94bb50 (diff)
downloadgcc-540bc8a8b1ff0aeb19ba6ac6304dd2e2075412c7.zip
gcc-540bc8a8b1ff0aeb19ba6ac6304dd2e2075412c7.tar.gz
gcc-540bc8a8b1ff0aeb19ba6ac6304dd2e2075412c7.tar.bz2
libphobos: Skip curl tests if libcurl is not installed on the target.
libphobos/ChangeLog: 2019-04-24 Iain Buclaw <ibuclaw@gdcproject.org> PR d/88654 * testsuite/lib/libphobos.exp (libphobos-dg-test): Check libphobos_skipped_test_p before running test. (libphobos-dg-prune): New proc. (libphobos_init): Set libphobos_skip_tests. (libphobos_skipped_test_p): New proc. (check_effective_target_libcurl_available): New proc. * testsuite/libphobos.phobos/phobos.exp: Skip curl tests if library not found. * testsuite/libphobos.phobos_shared/phobos_shared.exp: Likewise. From-SVN: r270545
Diffstat (limited to 'libphobos/testsuite/libphobos.phobos')
-rw-r--r--libphobos/testsuite/libphobos.phobos/phobos.exp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libphobos/testsuite/libphobos.phobos/phobos.exp b/libphobos/testsuite/libphobos.phobos/phobos.exp
index 8ace023..4b731d3 100644
--- a/libphobos/testsuite/libphobos.phobos/phobos.exp
+++ b/libphobos/testsuite/libphobos.phobos/phobos.exp
@@ -22,6 +22,12 @@ if { ![isnative] || ![is-effective-target static] } {
# Gather a list of all tests.
set tests [lsort [filter_libphobos_unittests [find $srcdir/../src "*.d"]]]
+set libphobos_skip_tests {
+ # Skip curl tests if library is not available
+ { libphobos.phobos/etc/c/curl.d { ! libcurl_available } }
+ { libphobos.phobos/std/net/curl.d { ! libcurl_available } }
+}
+
# Initialize dg.
dg-init