Skip to content

Commit d2ed055

Browse files
authored
Remove curl binaries from repo (#1782)
1 parent 6edb5ef commit d2ed055

File tree

4 files changed

+4
-11
lines changed

4 files changed

+4
-11
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ build/
4040
setup_dpdk_settings.dat
4141
3rdParty/OUIDataset/manuf.dat
4242

43-
#curl text
44-
Tests/Pcap++Test/cUrl/curl_output.txt
45-
4643
#eclipse files
4744
**/.settings
4845

Tests/Pcap++Test/Common/TestUtils.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,13 @@ extern PcapTestArgs PcapTestGlobalArgs;
1717
bool sendURLRequest(const std::string& url)
1818
{
1919
#if defined(_WIN32)
20-
std::string cmd = "cUrl\\curl_win32.exe -s -o cUrl\\curl_output.txt";
21-
#elif defined(__linux__)
22-
std::string cmd = "cUrl/curl.linux32 -s -o cUrl/curl_output.txt";
23-
#elif defined(__APPLE__) || defined(__FreeBSD__)
24-
std::string cmd = "curl -s -o cUrl/curl_output.txt";
20+
std::string cmd = "curl.exe -s -o NUL";
21+
#else
22+
std::string cmd = "curl -s -o /dev/null";
2523
#endif
2624

2725
cmd += " " + url;
28-
if (system(cmd.c_str()) == -1)
29-
return false;
30-
return true;
26+
return system(cmd.c_str()) != -1;
3127
}
3228

3329
bool readPcapIntoPacketVec(const std::string& pcapFileName, std::vector<pcpp::RawPacket>& packetStream,

Tests/Pcap++Test/cUrl/curl.linux32

-3.4 MB
Binary file not shown.
-486 KB
Binary file not shown.

0 commit comments

Comments
 (0)