yaffs Still trying to find the bug.
[yaffs2.git] / direct / timothy_tests / quick_tests / test_yaffs_sync_ENOTDIR.c
index 97fb2b14daeb33bdaacc7ab3d79a23d6937f2206..0961af20c6789c595289e62670ea6c90a44a578f 100644 (file)
@@ -16,7 +16,9 @@
 
 int test_yaffs_sync_ENOTDIR(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){