summaryrefslogtreecommitdiff
path: root/tests/xmlrpc-server-test.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-02-19 19:21:35 -0500
committerDan Winship <danw@gnome.org>2013-02-19 19:21:35 -0500
commit3af28bc8e78a7f281b68c36ffe515b5c8a17e507 (patch)
treefb78f3d81ac5b5d8b7f17538472bf2ef1a7d1d59 /tests/xmlrpc-server-test.c
parent98144c40bd5614237d23a95d068b8036af7af9ef (diff)
downloadlibsoup-3af28bc8e78a7f281b68c36ffe515b5c8a17e507.tar.gz
libsoup-3af28bc8e78a7f281b68c36ffe515b5c8a17e507.tar.bz2
libsoup-3af28bc8e78a7f281b68c36ffe515b5c8a17e507.zip
tests: do skipped tests properly
automake interprets exit code 77 as meaning "skipped", so have the various apache-dependent, php-dependent, and curl-dependent tests do that, and compile them unconditionally. (Although, to avoid "unused" warnings, we end up #ifdeffing out the whole file.)
Diffstat (limited to 'tests/xmlrpc-server-test.c')
-rw-r--r--tests/xmlrpc-server-test.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/xmlrpc-server-test.c b/tests/xmlrpc-server-test.c
index 75f6c911..421348b1 100644
--- a/tests/xmlrpc-server-test.c
+++ b/tests/xmlrpc-server-test.c
@@ -5,6 +5,8 @@
#include "test-utils.h"
+#ifdef HAVE_PHP_XMLRPC
+
#ifdef G_GNUC_BEGIN_IGNORE_DEPRECATIONS
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
#endif
@@ -345,3 +347,13 @@ main (int argc, char **argv)
test_cleanup ();
return errors != 0;
}
+
+#else /* HAVE_PHP_XMLRPC */
+
+int
+main (int argc, char **argv)
+{
+ return 77; /* SKIP */
+}
+
+#endif