iphlpapi/tests: Fix test failure for ScopeID with bad DAD

André Hentschel nerv at dawncrow.de
Wed Feb 22 14:01:31 CST 2017


Signed-off-by: André Hentschel <nerv at dawncrow.de>
---

Thanks François for testing

 dlls/iphlpapi/tests/iphlpapi.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/iphlpapi/tests/iphlpapi.c b/dlls/iphlpapi/tests/iphlpapi.c
index e0701a3..2f818ff 100644
--- a/dlls/iphlpapi/tests/iphlpapi.c
+++ b/dlls/iphlpapi/tests/iphlpapi.c
@@ -2067,6 +2067,9 @@ static void test_GetUnicastIpAddressEntry(void)
                 if (row.Address.si_family == AF_INET6)
                     ok(row.ScopeId.Value == row.Address.Ipv6.sin6_scope_id, "Expected %d, got %d\n",
                         row.Address.Ipv6.sin6_scope_id, row.ScopeId.Value);
+                else if (row.DadState == IpDadStateTentative)
+                    ok(row.ScopeId.Value == aa->IfIndex, "Expected %d, got %d\n",
+                        aa->IfIndex, row.ScopeId.Value);
                 else
                     ok(row.ScopeId.Value == 0, "Expected 0, got %d\n", row.ScopeId.Value);
                 ok(row.CreationTimeStamp.QuadPart, "CreationTimeStamp is 0\n");
-- 
2.7.4





More information about the wine-patches mailing list