kernel32/tests: Show wrong behaviour with current directory.
This commit is contained in:
parent
9e518dc79d
commit
9d00aeafd7
|
@ -1795,6 +1795,31 @@ static void test_overlapped(void)
|
|||
ok( r == TRUE, "close handle failed\n");
|
||||
}
|
||||
|
||||
static void test_RemoveDirectory(void)
|
||||
{
|
||||
int rc;
|
||||
char directory[] = "removeme";
|
||||
|
||||
rc = CreateDirectory(directory, NULL);
|
||||
ok( rc, "Createdirectory failed, gle=%d\n", GetLastError() );
|
||||
|
||||
rc = SetCurrentDirectory(directory);
|
||||
ok( rc, "SetCurrentDirectory failed, gle=%d\n", GetLastError() );
|
||||
|
||||
rc = RemoveDirectory(".");
|
||||
todo_wine {
|
||||
ok( !rc, "RemoveDirectory unexpectedly worked\n" );
|
||||
}
|
||||
|
||||
rc = SetCurrentDirectory("..");
|
||||
ok( rc, "SetCurrentDirectory failed, gle=%d\n", GetLastError() );
|
||||
|
||||
rc = RemoveDirectory(directory);
|
||||
todo_wine {
|
||||
ok( rc, "RemoveDirectory failed, gle=%d\n", GetLastError() );
|
||||
}
|
||||
}
|
||||
|
||||
START_TEST(file)
|
||||
{
|
||||
test__hread( );
|
||||
|
@ -1825,4 +1850,5 @@ START_TEST(file)
|
|||
test_read_write();
|
||||
test_OpenFile();
|
||||
test_overlapped();
|
||||
test_RemoveDirectory();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue