X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_fsync_EROFS.c;h=a4e3081d7ba6310aa7d07a81cad1e7e125e563c2;hp=97757faea1ec206cf15d0c45e9f0210bcf0cfa34;hb=41a39f326b4b732a36310275c0f4489c07117679;hpb=16df96a0d52168ffd252cb5547df303768e3519f diff --git a/direct/timothy_tests/quick_tests/test_yaffs_fsync_EROFS.c b/direct/timothy_tests/quick_tests/test_yaffs_fsync_EROFS.c index 97757fa..a4e3081 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_fsync_EROFS.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_fsync_EROFS.c @@ -21,7 +21,11 @@ int test_yaffs_fsync_EROFS(void) int error_code = 0; EROFS_setup(); - handle = test_yaffs_open(); + handle = yaffs_open(FILE_PATH,O_CREAT ,S_IREAD ); + if (handle<0){ + print_message("failed to open file\n",2); + return -1; + } output = yaffs_fsync(handle); if (output==-1){ error_code=yaffs_get_error();