Commit 9d00aeaf authored by Jason Edmeades's avatar Jason Edmeades Committed by Alexandre Julliard

kernel32/tests: Show wrong behaviour with current directory.

parent 9e518dc7
......@@ -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();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment