urlmon/tests: Fixed bug where tests might succeed before the function is implemented.

This commit is contained in:
Thomas Mullaly 2010-08-19 23:49:24 -04:00 committed by Alexandre Julliard
parent abafd9f1c7
commit 3775219a31
1 changed files with 18 additions and 14 deletions

View File

@ -5364,14 +5364,16 @@ static void test_IUriBuilder_GetFragment(IUriBuilder *builder, const uri_builder
"Error: IUriBuilder_GetFragment returned 0x%08x, expected 0x%08x on uri_builder_tests[%d].\n", "Error: IUriBuilder_GetFragment returned 0x%08x, expected 0x%08x on uri_builder_tests[%d].\n",
hr, (expected ? S_OK : S_FALSE), test_index); hr, (expected ? S_OK : S_FALSE), test_index);
} }
todo_wine { if(SUCCEEDED(hr)) {
ok(!strcmp_aw(expected, received), "Error: Expected %s but got %s on uri_builder_tests[%d].\n", todo_wine {
expected, wine_dbgstr_w(received), test_index); ok(!strcmp_aw(expected, received), "Error: Expected %s but got %s on uri_builder_tests[%d].\n",
} expected, wine_dbgstr_w(received), test_index);
todo_wine { }
ok(lstrlen(expected) == len, todo_wine {
"Error: Expected the length to be %d, but was %d instead on uri_builder_tests[%d].\n", ok(lstrlen(expected) == len,
lstrlen(expected), len, test_index); "Error: Expected the length to be %d, but was %d instead on uri_builder_tests[%d].\n",
lstrlen(expected), len, test_index);
}
} }
} else { } else {
ok(hr == (expected ? S_OK : S_FALSE), ok(hr == (expected ? S_OK : S_FALSE),
@ -5429,12 +5431,14 @@ static void test_IUriBuilder_GetFragment(IUriBuilder *builder, const uri_builder
"Error: IUriBuilder_GetFragment returned 0x%08x, expected 0x%08x on uri_builder_tests[%d].\n", "Error: IUriBuilder_GetFragment returned 0x%08x, expected 0x%08x on uri_builder_tests[%d].\n",
hr, S_FALSE, test_index); hr, S_FALSE, test_index);
} }
todo_wine { if(SUCCEEDED(hr)) {
ok(!received, "Error: Expected received to be NULL on uri_builder_tests[%d].\n", test_index); todo_wine {
} ok(!received, "Error: Expected received to be NULL on uri_builder_tests[%d].\n", test_index);
todo_wine { }
ok(!len, "Error: Expected the length to be 0, but was %d instead on uri_builder_tests[%d].\n", todo_wine {
len, test_index); ok(!len, "Error: Expected the length to be 0, but was %d instead on uri_builder_tests[%d].\n",
len, test_index);
}
} }
} }
SysFreeString(expected); SysFreeString(expected);