yaffs Added more tests to direct/timothy_tests/quick_tests
[yaffs2.git] / direct / timothy_tests / quick_tests / test_yaffs_rename_EEXISTS.c
index b1df21def1791c84dec8cc617c7ac39930fefde4..d9d1666a844750688327b65e600399ddf14ebcf2 100644 (file)
@@ -44,7 +44,7 @@ int test_yaffs_rename_EEXISTS(void)
        output = yaffs_rename(DIR_PATH , RENAME_DIR_PATH);
        if (output<0){ 
                error_code=yaffs_get_error();
        output = yaffs_rename(DIR_PATH , RENAME_DIR_PATH);
        if (output<0){ 
                error_code=yaffs_get_error();
-               if (abs(error_code)==EEXIST){
+               if (abs(error_code)==ENOTEMPTY){
                        return 1;
                } else {
                        print_message("returned error does not match the the expected error\n",2);
                        return 1;
                } else {
                        print_message("returned error does not match the the expected error\n",2);