aboutsummaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/unit1650.c4
-rw-r--r--tests/unit/unit1655.c12
2 files changed, 14 insertions, 2 deletions
diff --git a/tests/unit/unit1650.c b/tests/unit/unit1650.c
index cd6f519f7..35ac12c81 100644
--- a/tests/unit/unit1650.c
+++ b/tests/unit/unit1650.c
@@ -33,7 +33,7 @@ static void unit_stop(void)
}
-#ifdef USE_NGHTTP2
+#ifndef CURL_DISABLE_DOH
#define DNS_PREAMBLE "\x00\x00\x01\x00\x00\x01\x00\x00\x00\x00\x00\x00"
#define LABEL_TEST "\x04\x74\x65\x73\x74"
#define LABEL_HOST "\x04\x68\x6f\x73\x74"
@@ -283,7 +283,7 @@ UNITTEST_START
}
UNITTEST_STOP
-#else /* USE_NGHTTP2 */
+#else /* CURL_DISABLE_DOH */
UNITTEST_START
{
return 1; /* nothing to do, just fail */
diff --git a/tests/unit/unit1655.c b/tests/unit/unit1655.c
index cccaab8da..a06b23a76 100644
--- a/tests/unit/unit1655.c
+++ b/tests/unit/unit1655.c
@@ -34,6 +34,8 @@ static void unit_stop(void)
/* done before shutting down and exiting */
}
+#ifndef CURL_DISABLE_DOH
+
UNITTEST_START
/*
@@ -175,3 +177,13 @@ do {
fail_unless(olen == olen1, "bad buffer length");
} while(0);
UNITTEST_STOP
+
+#else /* CURL_DISABLE_DOH */
+
+UNITTEST_START
+{
+ return 1; /* nothing to do, just fail */
+}
+UNITTEST_STOP
+
+#endif