kernel32/tests: Show wrong behaviour with current directory.

This commit is contained in:
Jason Edmeades 2007-03-04 22:37:38 +00:00 committed by Alexandre Julliard
parent 9e518dc79d
commit 9d00aeafd7
1 changed files with 26 additions and 0 deletions

View File

@ -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();
}