From: Viktor Szakats Date: Fri, 1 Aug 2025 15:39:35 +0000 (+0200) Subject: lib2700: use `testnum` X-Git-Tag: curl-8_16_0~288 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d56c1401f14d12c02f6fff09baf1b562b8cda7a;p=thirdparty%2Fcurl.git lib2700: use `testnum` Follow-up to 02dd471bbf8e04fc595ad0f28c965c278ffcefd0 #17591 Follow-up to d3594be6531df3d5eafcdd09f84ad9dee1777028 #17136 Closes #18138 --- diff --git a/tests/data/test2708 b/tests/data/test2708 index fd0ee0707f..0dbd873520 100644 --- a/tests/data/test2708 +++ b/tests/data/test2708 @@ -24,7 +24,6 @@ ws://%HOSTIP:%HTTPPORT/%TESTNUMBER CURL_WS_FORCE_ZERO_MASK=1 -LIB2700_AUTO_PONG=1 diff --git a/tests/libtest/lib2700.c b/tests/libtest/lib2700.c index c0d2fdb642..d8dbbbb93a 100644 --- a/tests/libtest/lib2700.c +++ b/tests/libtest/lib2700.c @@ -228,7 +228,7 @@ static CURLcode test_lib2700(const char *URL) easy_setopt(curl, CURLOPT_DEBUGFUNCTION, libtest_debug_cb); easy_setopt(curl, CURLOPT_VERBOSE, 1L); easy_setopt(curl, CURLOPT_CONNECT_ONLY, 2L); - if(!getenv("LIB2700_AUTO_PONG")) + if(testnum != 2708) easy_setopt(curl, CURLOPT_WS_OPTIONS, (long)CURLWS_NOAUTOPONG); res = curl_easy_perform(curl);