[PATCH 4/4] hnetcfg/tests: Don't test removing the same mapping twice.

Paul Gofman pgofman at codeweavers.com
Thu Feb 3 05:28:34 CST 2022


Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
---
     Different routers may return either success or error when deleting nonexistent mapping,
     so no point testing it.

 dlls/hnetcfg/tests/policy.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/dlls/hnetcfg/tests/policy.c b/dlls/hnetcfg/tests/policy.c
index f344019d1d3..3b614e6e05a 100644
--- a/dlls/hnetcfg/tests/policy.c
+++ b/dlls/hnetcfg/tests/policy.c
@@ -278,8 +278,6 @@ static void test_static_port_mapping_collection( IStaticPortMappingCollection *p
     hr = IEnumVARIANT_Next(enum_ports, 1, &var, &fetched);
     ok(hr == S_FALSE, "Got unexpected hr %#x.\n", hr);
 
-    hr = IStaticPortMappingCollection_Remove(ports, 12345, (BSTR)L"UDP");
-    ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
     hr = IStaticPortMappingCollection_Remove(ports, 12345, (BSTR)L"UDP");
     ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
 
-- 
2.34.1




More information about the wine-devel mailing list