Turn on unit tests by default, and ifdef out a few of them

This commit is contained in:
Tim Wojtulewicz 2022-10-27 16:36:06 -07:00 committed by Tomer Lev
parent 88b3a449a7
commit bf06cc9c2f
5 changed files with 30 additions and 4 deletions

View file

@ -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")