X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_rename_dir_ENOENT.c;h=f86b705b7d685654f7a57382045eb0fae746a792;hb=6648cbf52d6695755941ff8607fd7a0cda542e05;hp=a4232e61af819d76d66e5a1193d1c75e9072a63b;hpb=f3b2098d2fde2c023ad8f84484d647b16e4c5f0f;p=yaffs2.git diff --git a/direct/timothy_tests/quick_tests/test_yaffs_rename_dir_ENOENT.c b/direct/timothy_tests/quick_tests/test_yaffs_rename_dir_ENOENT.c index a4232e6..f86b705 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_rename_dir_ENOENT.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_rename_dir_ENOENT.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 @@ -29,7 +29,7 @@ int test_yaffs_rename_dir_ENOENT(void) output = yaffs_rename( "/yaffs2/non-existing-dir/" , RENAME_DIR_PATH); if (output<0){ error_code=yaffs_get_error(); - if (abs(error_code)==EINVAL){ + if (abs(error_code)==ENOENT){ return 1; } else { print_message("returned error does not match the the expected error\n",2);