haiku/src/tests
Kyle Ambroff-Kao 40aa43588d tests/net: Fix NetworkAddressTest::TestUnset()
This test just checks a default-constructed BNetworkAddress and a
BNetworkAddress that has had its Unset method invoked are in the same
state.

It also compares against a BNetworkAddress that has been constructed
with the AF_INET family. In BeOS R5 this worked because you could
construct a BNetworkAddress with nullptr for the host parameter, but
in Haiku this this leads to Unset() being invoked. So
BNetworkAddress(AF_INET, NULL) is the same as a default-constructed
BNetworkAddress object.

This patch just changes the test to construct the BNetworkAddress used
for comparison with a valid host using the IPv4 loopback address
instead.

Change-Id: Id890110cfa1f3c40a630f9005e2a390e25f6baae
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2388
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-04-04 22:44:37 +00:00
..
add-ons Adding superblock, types, xfs_mount and volume 2020-03-09 08:52:50 +00:00
apps tests/haikudepot: Fix build of ValidationUtilsTest 2020-02-03 11:36:07 +00:00
kits tests/net: Fix NetworkAddressTest::TestUnset() 2020-04-04 22:44:37 +00:00
libs Add a features.h to auto enable _DEFAULT_SOURCE 2019-07-29 20:26:46 +00:00
misc Remove all invocations of SetSubDirSupportedPlatformsBeOSCompatible. 2019-03-30 15:19:38 -04:00
servers app_server: Add tiled bitmap drawing routines 2019-12-09 12:22:28 +00:00
system kernel/x86: stores cpu number in TSC_AUX if rdtscp is available 2020-02-17 17:26:39 +00:00
ExampleTest.cpp
ExampleTest.h
ExampleTestAddon.cpp
Jamfile makeudfimage: Remove this tool completely 2020-03-09 12:18:06 +00:00
qemu-boot-test tests/qemu-boot-test: Fix alternate platform tests 2020-01-01 20:50:24 -06:00
UnitTester.cpp
UnitTester.h
UnitTester.rdef tests: Convert a lot of RSRCs to RDEFs. 2015-06-22 15:39:47 -04:00