X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_sync_ENODEV.c;fp=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_sync_ENOTDIR.c;h=90ae4a41bf63f324f7dd7f6adfd8f3185a74185b;hb=239fd86892c59299042eabf617309a2d2ddf700b;hp=0961af20c6789c595289e62670ea6c90a44a578f;hpb=7b53d290e92e619a315399ba49aadf6b40e13660;p=yaffs2.git diff --git a/direct/timothy_tests/quick_tests/test_yaffs_sync_ENOTDIR.c b/direct/timothy_tests/quick_tests/test_yaffs_sync_ENODEV.c similarity index 84% rename from direct/timothy_tests/quick_tests/test_yaffs_sync_ENOTDIR.c rename to direct/timothy_tests/quick_tests/test_yaffs_sync_ENODEV.c index 0961af2..90ae4a4 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_sync_ENOTDIR.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_sync_ENODEV.c @@ -11,17 +11,17 @@ * published by the Free Software Foundation. */ -#include "test_yaffs_sync_ENOTDIR.h" +#include "test_yaffs_sync_ENODEV.h" -int test_yaffs_sync_ENOTDIR(void) +int test_yaffs_sync_ENODEV(void) { int error_code=-1; int output = yaffs_sync("non-existing-dir/foo"); if (output<0){ error_code=yaffs_get_error(); - if (abs(error_code)==ENOTDIR){ + if (abs(error_code)==ENODEV){ return 1; } else { print_message("returned error does not match the the expected error\n",2); @@ -36,7 +36,7 @@ int test_yaffs_sync_ENOTDIR(void) } -int test_yaffs_sync_ENOTDIR_clean(void) +int test_yaffs_sync_ENODEV_clean(void) { return 1; }