X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_rename_dir_to_file.c;fp=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_rename_dir_to_file.c;h=cea18f0175ca5c9790ec4255e924123d235e9bad;hp=d87b8ab6adebeea7f7d60201c1b60d65790fcfbf;hb=137f935f6d622bffdef2fece0c5194e85f5174e9;hpb=d223baa0fa5644b48c2626f8d42b05ac45b1daf6 diff --git a/direct/timothy_tests/quick_tests/test_yaffs_rename_dir_to_file.c b/direct/timothy_tests/quick_tests/test_yaffs_rename_dir_to_file.c index d87b8ab..cea18f0 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_rename_dir_to_file.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_rename_dir_to_file.c @@ -21,7 +21,14 @@ int test_yaffs_rename_dir_to_file(void) if (0 != yaffs_access(DIR_PATH,0)) { output= yaffs_mkdir(DIR_PATH,(S_IREAD | S_IWRITE)); if (output<0) { - print_message("failed to create directory\n",2); + print_message("failed to remove directory\n",2); + return -1; + } + } + if (0 != yaffs_access(RENAME_PATH,0)) { + output= yaffs_mkdir(RENAME_PATH,(S_IREAD | S_IWRITE)); + if (output<0) { + print_message("failed to remove file\n",2); return -1; } }