X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_rename.c;h=cc55fb139d085fd439aeac2c29216bd058805a68;hp=509bb9a83b44ba90ed47537bf9924bf48346aed2;hb=137f935f6d622bffdef2fece0c5194e85f5174e9;hpb=d3abc5c5da005343e7d78c5c9a51d58af14b3faa diff --git a/direct/timothy_tests/quick_tests/test_yaffs_rename.c b/direct/timothy_tests/quick_tests/test_yaffs_rename.c index 509bb9a..cc55fb1 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_rename.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_rename.c @@ -34,10 +34,10 @@ int test_yaffs_rename(void) int test_yaffs_rename_clean(void) { int output = 0; - if (0 == yaffs_access(RENAME_PATH,0)) { - output = yaffs_rename(RENAME_PATH,FILE_PATH); + if (0 == yaffs_access(FILE_PATH,0)) { + output = test_yaffs_open(); if (output < 0) { - print_message("failed to rename the file\n",2); + print_message("failed to open a new file\n",2); return -1; } }