Module: wine Branch: refs/heads/master Commit: d4245634ca3230b0b8f93a6fa0a85c8f165f90e6 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=d4245634ca3230b0b8f93a6f...
Author: Robert Shearman rob@codeweavers.com Date: Mon May 22 12:02:23 2006 +0100
wininet: Fix a failing test.
---
dlls/wininet/tests/url.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/wininet/tests/url.c b/dlls/wininet/tests/url.c index 364364a..60ed7e9 100644 --- a/dlls/wininet/tests/url.c +++ b/dlls/wininet/tests/url.c @@ -320,12 +320,12 @@ static void InternetCrackUrlW_test(void) comp.dwExtraInfoLength = sizeof(extra)/sizeof(extra[0]);
r = InternetCrackUrlW(url2, 0, 0, &comp); - ok( r, "InternetCrackUrl failed, error %lx\n",GetLastError()); - ok(!comp.dwSchemeLength,".dwSchemeLength should be 0, but is %ld\n", comp.dwSchemeLength); - ok(!comp.dwHostNameLength,".dwHostNameLength should be 0, but is %ld\n", comp.dwHostNameLength); - ok(!comp.dwUserNameLength,".dwUserNameLength should be 0, but is %ld\n", comp.dwUserNameLength); - ok(!comp.dwPasswordLength,".dwPasswordLength should be 0, but is %ld\n", comp.dwPasswordLength); - ok(!comp.dwExtraInfoLength,".dwExtraInfoLength should be 0, but is %ld\n", comp.dwExtraInfoLength); + todo_wine { + ok(!r, "InternetCrackUrl should have failed\n"); + ok(GetLastError() == ERROR_INTERNET_UNRECOGNIZED_SCHEME, + "InternetCrackUrl should have failed with error ERROR_INTERNET_UNRECOGNIZED_SCHEME instead of error %ld\n", + GetLastError()); + } }
static void fill_url_components(LPURL_COMPONENTS lpUrlComponents)