diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-09-30 22:24:54 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-10-01 07:56:49 +0200 |
commit | b8ab30d3096f65683571eff4ba474ceba592a480 (patch) | |
tree | c58efdb60f91af41b821746fc60cb6c2d6994112 | |
parent | 3edb0e369e217c7657d5164e9fe1a06aec008d1e (diff) | |
download | curl-b8ab30d3096f65683571eff4ba474ceba592a480.tar.gz |
test1650: make it depend on http/2
Follow-up to 570008c99da0ccbb as it gets link errors.
Reported-by: Michael Kaufmann
Closes #3068
-rw-r--r-- | tests/data/test1650 | 1 | ||||
-rw-r--r-- | tests/unit/unit1650.c | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/data/test1650 b/tests/data/test1650 index 60bfb6df3..13ca023e0 100644 --- a/tests/data/test1650 +++ b/tests/data/test1650 @@ -14,6 +14,7 @@ none </server> <features> unittest +http/2 </features> <name> DOH diff --git a/tests/unit/unit1650.c b/tests/unit/unit1650.c index b76936a97..05024f9b2 100644 --- a/tests/unit/unit1650.c +++ b/tests/unit/unit1650.c @@ -33,6 +33,7 @@ static void unit_stop(void) } +#ifdef USE_NGHTTP2 #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" @@ -281,3 +282,13 @@ UNITTEST_START } } UNITTEST_STOP + +#else /* USE_NGHTTP2 */ +UNITTEST_START +{ + return 1; /* nothing to do, just fail */ +} +UNITTEST_STOP + + +#endif |