yaffs Fixed some tests in direct/timothy_tests/quick_tests
[yaffs2.git] / direct / timothy_tests / quick_tests / test_yaffs_write_EROFS.c
index d39e42a71f1f9fc2155825a43a96be7991f7bb3c..f0071eaede6d022da8b9fa1dbc267a9604a1b10a 100644 (file)
@@ -19,8 +19,8 @@ int test_yaffs_write_EROFS(void)
 {
        int output=0;
        int error_code=0;
+       handle=test_yaffs_open();
        EROFS_setup();
-       handle=yaffs_open(FILE_PATH, O_CREAT  ,S_IREAD);
        if (handle>=0){
                output= yaffs_write(handle, FILE_TEXT, FILE_TEXT_NBYTES);
                if (output<0){