summaryrefslogtreecommitdiff
path: root/tests/server-auth-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/server-auth-test.c')
-rw-r--r--tests/server-auth-test.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/tests/server-auth-test.c b/tests/server-auth-test.c
index 77a5dba1..b5580c82 100644
--- a/tests/server-auth-test.c
+++ b/tests/server-auth-test.c
@@ -5,8 +5,6 @@
#include "test-utils.h"
-#ifdef HAVE_CURL
-
static struct {
gboolean client_sent_basic, client_sent_digest;
gboolean server_requested_basic, server_requested_digest;
@@ -106,6 +104,11 @@ do_auth_tests (gconstpointer data)
gboolean use_basic, use_digest, good_user, good_password;
gboolean preemptive_basic, good_auth;
+#ifndef HAVE_CURL
+ g_test_skip ("/usr/bin/curl is not available");
+ return;
+#endif
+
for (i = 0; i < 16; i++) {
use_basic = (i & 1) == 1;
use_digest = (i & 2) == 2;
@@ -344,13 +347,3 @@ main (int argc, char **argv)
test_cleanup ();
return ret;
}
-
-#else /* HAVE_CURL */
-
-int
-main (int argc, char **argv)
-{
- return 77; /* SKIP */
-}
-
-#endif