kernel32: add a test for CreateFileA()
James McKenzie
jjmckenzie51 at earthlink.net
Sun Jul 18 09:39:07 CDT 2010
Austin English wrote:
> Passed all the vm's on wtb.
>
>
> ------------------------------------------------------------------------
>
>
+ hFile = CreateFileA("c:\\*.*", GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL );
+ ok(GetLastError() == ERROR_INVALID_NAME || broken(GetLastError() == ERROR_FILE_NOT_FOUND) || broken(GetLastError() == ERROR_PATH_NOT_FOUND),
+ "CreateFileA should have returned ERROR_INVALID_NAME on %s, but got %u\n", filename, GetLastError());
+ CloseHandle( hFile );
Nice negative test, but how about one that should pass?
James McKenzie
More information about the wine-devel
mailing list