Huw Davies : iphlpapi/tests: Allow the route's age to differ by one second.
Alexandre Julliard
julliard at winehq.org
Tue Jun 21 15:45:24 CDT 2022
Module: wine
Branch: master
Commit: 1c83efac779248646da51795611651b2191f382c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=1c83efac779248646da51795611651b2191f382c
Author: Huw Davies <huw at codeweavers.com>
Date: Tue Jun 21 08:23:35 2022 +0100
iphlpapi/tests: Allow the route's age to differ by one second.
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
dlls/iphlpapi/tests/iphlpapi.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/iphlpapi/tests/iphlpapi.c b/dlls/iphlpapi/tests/iphlpapi.c
index 29256eb2774..214256c18b4 100644
--- a/dlls/iphlpapi/tests/iphlpapi.c
+++ b/dlls/iphlpapi/tests/iphlpapi.c
@@ -350,7 +350,8 @@ static void testGetIpForwardTable(void)
else
ok( buf->table[i].dwForwardType == MIB_IPROUTE_TYPE_INDIRECT, "got %ld\n", buf->table[i].dwForwardType );
ok( row->dwForwardProto == row2->Protocol, "got %ld vs %d\n", row->dwForwardProto, row2->Protocol );
- ok( row->dwForwardAge == row2->Age, "got %ld vs %ld\n", row->dwForwardAge, row2->Age );
+ ok( row->dwForwardAge == row2->Age || row->dwForwardAge + 1 == row2->Age,
+ "got %ld vs %ld\n", row->dwForwardAge, row2->Age );
ok( row->dwForwardNextHopAS == 0, "got %08lx\n", row->dwForwardNextHopAS );
/* FIXME: need to add the interface's metric from GetIpInterfaceTable() */
ok( row->dwForwardMetric1 >= row2->Metric, "got %ld vs %ld\n", row->dwForwardMetric1, row2->Metric );
More information about the wine-cvs
mailing list