diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2019-12-09 11:42:26 +0100 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2019-12-13 20:55:50 +0100 |
commit | 9f239811fdc9881d64fee5f20cdfe3b66e8c2e14 (patch) | |
tree | e7e79fcfbc2fd093eaff5e417e86fc1b54a0a764 /tests/unit/unit1655.c | |
parent | ec3758b95f98954b43af6367e7f27baee0d9f307 (diff) | |
download | curl-9f239811fdc9881d64fee5f20cdfe3b66e8c2e14.tar.gz |
tests: fix build with `CURL_DISABLE_DOH`
Closes https://github.com/curl/curl/pull/4692
Diffstat (limited to 'tests/unit/unit1655.c')
-rw-r--r-- | tests/unit/unit1655.c | 12 |
1 files changed, 12 insertions, 0 deletions
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 |