mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
Turn on unit tests by default, and ifdef out a few of them
This commit is contained in:
parent
88b3a449a7
commit
bf06cc9c2f
5 changed files with 30 additions and 4 deletions
|
@ -296,6 +296,9 @@ TEST_CASE("dns_mapping init addr")
|
|||
|
||||
TEST_CASE("dns_mapping save reload")
|
||||
{
|
||||
// TODO: this test uses fmemopen and mkdtemp, both of which aren't available on
|
||||
// Windows. We'll have to figure out another way to do this test there.
|
||||
#ifndef _MSC_VER
|
||||
IPAddr addr("1.2.3.4");
|
||||
in4_addr in4;
|
||||
addr.CopyIPv4(&in4);
|
||||
|
@ -356,6 +359,7 @@ TEST_CASE("dns_mapping save reload")
|
|||
CHECK(svh->ToStdString() == "testing.home");
|
||||
|
||||
delete[] he.h_name;
|
||||
#endif
|
||||
}
|
||||
|
||||
TEST_CASE("dns_mapping multiple addresses")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue