yaffs Fixed some bugs in quick tests and added some more tests.
[yaffs2.git] / 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 0961af20c6789c595289e62670ea6c90a44a578f..90ae4a41bf63f324f7dd7f6adfd8f3185a74185b 100644 (file)
  * 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;
 }