[PATCH] urlmon/tests: Don't perform extra uri tests if a failure was expected.
Francois Gouget
fgouget at free.fr
Thu Nov 21 10:12:56 CST 2019
When a failure is expected uri_combine_tests[] has no extra test data.
So don't attempt to perform extra tests even if CoInternetCombineIUri()
unexpectedly succeeds.
Signed-off-by: Francois Gouget <fgouget at free.fr>
---
dlls/urlmon/tests/uri.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/urlmon/tests/uri.c b/dlls/urlmon/tests/uri.c
index 9069a9c1763..9d6af349dcc 100644
--- a/dlls/urlmon/tests/uri.c
+++ b/dlls/urlmon/tests/uri.c
@@ -10587,7 +10587,7 @@ static void test_CoInternetCombineIUri(void) {
ok(hr == uri_combine_tests[i].expected,
"Error: CoInternetCombineIUri returned 0x%08x, expected 0x%08x on uri_combine_tests[%d].\n",
hr, uri_combine_tests[i]. expected, i);
- if(SUCCEEDED(hr)) {
+ if(SUCCEEDED(hr) && uri_combine_tests[i].expected) {
DWORD j;
for(j = 0; j < ARRAY_SIZE(uri_combine_tests[i].str_props); ++j) {
--
2.20.1
More information about the wine-devel
mailing list