[1/4] ntdll/tests: Add 0-length read tests for a disk file.

Dmitry Timoshkov dmitry at baikal.ru
Wed Sep 18 02:17:46 CDT 2013


Nikolay Sivov <nsivov at codeweavers.com> wrote:

> > --- a/dlls/ntdll/tests/file.c
> > +++ b/dlls/ntdll/tests/file.c
> > @@ -1985,6 +1985,22 @@ static void test_read_write(void)
> >
> >       bytes = 0xdeadbeef;
> >       SetLastError(0xdeadbeef);
> > +    ret = ReadFile(INVALID_HANDLE_VALUE, buf, 0,&bytes, NULL);
> > +todo_wine
> > +    ok(!ret, "ReadFile should fail\n");
> > +todo_wine
> > +    ok(GetLastError() == ERROR_INVALID_HANDLE, "expected ERROR_INVALID_HANDLE, got %d\n", GetLastError());
> > +    ok(bytes == 0, "bytes %u\n", bytes);
> >
> That's again a test for kernel32 calls, placed in a wrong file.

Please actually look at the tests before commenting.

-- 
Dmitry.



More information about the wine-devel mailing list