yaffs Adding more tests to direct/timothy_tests/quick_tests
[yaffs2.git] / direct / timothy_tests / quick_tests / test_yaffs_rename_EINVAL.c
index 95ddc37991f8da699e06f3ed83f838a70ddfc851..5a1f67567a57233d58e1ea72248673cf0bdbd79c 100644 (file)
@@ -46,7 +46,7 @@ int test_yaffs_rename_EINVAL(void)
 int test_yaffs_rename_EINVAL_clean(void)
 {
        int output = 0;
-       if (0 ==  yaffs_access(RENAME_PATH,0)) {
+       if (0 ==  yaffs_access(RENAME_PATH,0) && 0 != yaffs_access(DIR_PATH,0)) {
                output = yaffs_rename(RENAME_PATH,FILE_PATH);
                if (output < 0) {
                        print_message("failed to remove the directory\n",2);