X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_rename_EINVAL.c;h=a430577a4552553898a9513c6afca373b965b7bc;hp=95ddc37991f8da699e06f3ed83f838a70ddfc851;hb=121c055437f23d9d6bc7b57d36ecf128b447013f;hpb=d3abc5c5da005343e7d78c5c9a51d58af14b3faa diff --git a/direct/timothy_tests/quick_tests/test_yaffs_rename_EINVAL.c b/direct/timothy_tests/quick_tests/test_yaffs_rename_EINVAL.c index 95ddc37..a430577 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_rename_EINVAL.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_rename_EINVAL.c @@ -1,7 +1,7 @@ /* * YAFFS: Yet another FFS. A NAND-flash specific file system. * - * Copyright (C) 2002-2010 Aleph One Ltd. + * Copyright (C) 2002-2011 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by Timothy Manning @@ -20,7 +20,6 @@ int test_yaffs_rename_EINVAL(void) int error_code =0; if (0 != yaffs_access(DIR_PATH,0)) { - printf("dir does not exist\n"); output = yaffs_mkdir(DIR_PATH,S_IWRITE | S_IREAD); if (output < 0) { print_message("failed to create directory\n",2); @@ -46,7 +45,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);