Paul Vriens : urlmon/tests: Skip some tests on Win9x and WinMe.
Module: wine Branch: master Commit: 7a723944b88be1de9c42d4e017ab3ec7547fdcaa URL: http://source.winehq.org/git/wine.git/?a=commit;h=7a723944b88be1de9c42d4e017... Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Tue Nov 11 10:09:39 2008 +0100 urlmon/tests: Skip some tests on Win9x and WinMe. --- dlls/urlmon/tests/protocol.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/urlmon/tests/protocol.c b/dlls/urlmon/tests/protocol.c index 6c933af..bdd5a85 100644 --- a/dlls/urlmon/tests/protocol.c +++ b/dlls/urlmon/tests/protocol.c @@ -1423,8 +1423,14 @@ static void test_file_protocol(void) { trace("Testing file protocol...\n"); tested_protocol = FILE_TEST; + SetLastError(0xdeadbeef); file = CreateFileW(wszIndexHtml, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); + if(!file && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) + { + win_skip("Detected Win9x or WinMe\n"); + return; + } ok(file != INVALID_HANDLE_VALUE, "CreateFile failed\n"); if(file == INVALID_HANDLE_VALUE) return;
participants (1)
-
Alexandre Julliard