#
40aa4358 |
|
21-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 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>
|
#
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 more tests fail. When network interface exists but is disabled in Haiku, tests are fast but more tests fail.
|
#
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 how the kernel modules handles this.
|
#
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 (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
|
#
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-f6bbb57e9c96
|
#
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
|
#
0cd38980a3c14b19926fdf28a808575a688470f4 |
|
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 more tests fail. When network interface exists but is disabled in Haiku, tests are fast but more tests fail.
|
#
d044457531a731dd97533d611ea7bfd22fa920e4 |
|
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 how the kernel modules handles this.
|
#
ddf57b6cf65fe40299b8b7140bab10d305b5ce15 |
|
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 (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
|
#
e06c0a1d505d20265992168db0d066eec56bc43f |
|
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-f6bbb57e9c96
|
#
fc958868b43e84ad97ff18b869a2a189e868043d |
|
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
|