Added a couple of tests for SetCurrentDirectoryA.

This commit is contained in:
Alexandre Julliard 2004-06-17 04:26:59 +00:00
parent 225c6d2cee
commit 9cb122c2ef
1 changed files with 11 additions and 0 deletions

View File

@ -330,6 +330,15 @@ static void test_RemoveDirectoryW(void)
ret ? " True" : "False", GetLastError());
}
static void test_SetCurrentDirectoryA(void)
{
SetLastError(0);
ok( !SetCurrentDirectoryA( "\\some_dummy_dir" ), "SetCurrentDirectoryA succeeded\n" );
ok( GetLastError() == ERROR_FILE_NOT_FOUND, "wrong error %ld\n", GetLastError() );
ok( !SetCurrentDirectoryA( "\\some_dummy\\subdir" ), "SetCurrentDirectoryA succeeded\n" );
ok( GetLastError() == ERROR_PATH_NOT_FOUND, "wrong error %ld\n", GetLastError() );
}
START_TEST(directory)
{
test_GetWindowsDirectoryA();
@ -343,4 +352,6 @@ START_TEST(directory)
test_RemoveDirectoryA();
test_RemoveDirectoryW();
test_SetCurrentDirectoryA();
}