#
40aa4358 |
| 22-Mar-2020 |
Kyle Ambroff-Kao <kyle@ambroffkao.com> |
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
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>
show more ...
|
#
a4834579 |
| 25-Mar-2017 |
Adrien Destugues <pulkomandy@pulkomandy.tk> |
Add test for BNetworkAddress::Equals
Shows that #12247 is invalid.
|
#
0cd38980 |
| 28-Jul-2015 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Add unit tests specific for #12208. Pass depends on network.
NetworkAddressTest passes (most) tests when you have network. When no network interface (ie -net none in QEMU) tests take forever and mor
Add unit tests specific for #12208. Pass depends on network.
NetworkAddressTest passes (most) tests when you have network. When no network interface (ie -net none in QEMU) tests take forever and more tests fail. When network interface exists but is disabled in Haiku, tests are fast but more tests fail.
show more ...
|
#
d0444575 |
| 23-Mar-2015 |
Axel Dörfler <axeld@pinc-software.de> |
BNetworkAddress::IsEmpty() now detects empty ipv4/6.
* Until now, only AF_UNSPEC addresses could be empty. * Now, the unspecified IPV4/IPv6 address is considered empty, too. * This corresponds to ho
BNetworkAddress::IsEmpty() now detects empty ipv4/6.
* Until now, only AF_UNSPEC addresses could be empty. * Now, the unspecified IPV4/IPv6 address is considered empty, too. * This corresponds to how the kernel modules handles this.
show more ...
|
#
ddf57b6c |
| 18-Feb-2011 |
Axel Dörfler <axeld@pinc-software.de> |
* Reverted back to the original version of BNetworkAddress::SetAddress(); in_addr_t is now in network endian again. Thanks, Philippe! * Made SetToLoopback(), and SetToLocal() a bit more useful (alt
* Reverted back to the original version of BNetworkAddress::SetAddress(); in_addr_t is now in network endian again. Thanks, Philippe! * Made SetToLoopback(), and SetToLocal() a bit more useful (although the latter isn't implemented yet). * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40552 a95241bf-73f2-0310-859d-f6bbb57e9c96
show more ...
|
#
e06c0a1d |
| 11-Feb-2011 |
Axel Dörfler <axeld@pinc-software.de> |
* Added a test to check several BNetworkAddress::SetTo() variants - all pass now since the last revision.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40454 a95241bf-73f2-0310-859d-f6bbb57
* Added a test to check several BNetworkAddress::SetTo() variants - all pass now since the last revision.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40454 a95241bf-73f2-0310-859d-f6bbb57e9c96
show more ...
|
#
fc958868 |
| 01-Dec-2010 |
Axel Dörfler <axeld@pinc-software.de> |
* Added some unit tests for BNetworkAddress.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39694 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2a58d543 |
| 15-Aug-2015 |
Julian Harnath <julian.harnath@rwth-aachen.de> |
Merge branch 'master' into app_server
|