Changelog - dlls/kernel/tests Fix another test error on Windows making the test into a todo_wine. With this and the previous patch, current CVS kernel32_test compiled with MSVC produces no error anymore under W2K. License: X11 Rolf Kalbermatter Index: dlls/kernel/tests/file.c =================================================================== RCS file: /home/wine/wine/dlls/kernel/tests/file.c,v retrieving revision 1.19 diff -u -r1.19 file.c --- dlls/kernel/tests/file.c 5 Sep 2003 23:08:36 -0000 1.19 +++ dlls/kernel/tests/file.c 15 Sep 2003 21:17:14 -0000 @@ -28,7 +28,6 @@ #include "winbase.h" #include "winerror.h" - LPCSTR filename = "testfile.xxx"; LPCSTR sillytext = "en larvig liten text dx \033 gx hej 84 hej 4484 ! \001\033 bla bl\na.. bla bla." @@ -263,10 +262,13 @@ ok( DeleteFileA( filename ) != 0, "DeleteFile failed (%ld)", GetLastError( ) ); filehandle=_lcreat (slashname, 0); /* illegal name */ - if (HFILE_ERROR==filehandle) - ok (0, "couldn't create file \"%s\" (err=%ld)", slashname, - GetLastError ()); - else { + if (HFILE_ERROR != filehandle || GetLastError() != ERROR_INVALID_NAME) + { + + todo_wine { + ok (0, "creating file \"%s\" should fail with error 123, (err=%ld)", slashname, GetLastError ()); + } + _lclose(filehandle); find=FindFirstFileA (slashname, &search_results); if (INVALID_HANDLE_VALUE==find)