summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2018-01-09 11:32:59 +0000
committerPhilip Withnall <withnall@endlessm.com>2018-01-09 11:32:59 +0000
commitf8cd424a5594ed6b2680d860b33d3933f64f1c20 (patch)
tree0b7f198d52e0050be79fecd9e34f70e5492af861
parent189a7238f603d15819f62d1cd0e406cc214978d1 (diff)
downloadlibgdata-f8cd424a5594ed6b2680d860b33d3933f64f1c20.tar.gz
tests: Skip /service/network_error test by default
It requires network access, so is not suitable for running on build machines as per Debian policy. Skip it unless running ‘slow’ tests. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=838530 Signed-off-by: Philip Withnall <withnall@endlessm.com>
-rw-r--r--gdata/tests/general.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdata/tests/general.c b/gdata/tests/general.c
index da531fec..977dc959 100644
--- a/gdata/tests/general.c
+++ b/gdata/tests/general.c
@@ -1421,6 +1421,12 @@ test_service_network_error (void)
#endif
GError *error = NULL;
+ /* Skip this test unless explicitly asked for, so that we don’t do network accesses on build machines by default. */
+ if (!g_test_slow ()) {
+ g_test_skip ("Test requires network access");
+ return;
+ }
+
/* This is a little hacky, but it should work */
service = g_object_new (GDATA_TYPE_SERVICE, NULL);