X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=direct%2Ftest-framework%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_fchmod_EROFS.c;fp=direct%2Ftest-framework%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_fchmod_EROFS.c;h=d0df0703e552231ffe0fba44fd7196dbc6f50c60;hb=a175efe13e14f1be10ed4691cd1b8eee32abc046;hp=250ebc68a716e924297d8bb4f0bebef7dc8be578;hpb=17c2897913447766bfd88fd49ca897821a3d2205;p=yaffs2.git diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_fchmod_EROFS.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_fchmod_EROFS.c index 250ebc6..d0df070 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_fchmod_EROFS.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_fchmod_EROFS.c @@ -18,6 +18,10 @@ int test_yaffs_fchmod_EROFS(void) { int error = 0; int output = 0; + if (yaffs_close(yaffs_open(FILE_PATH,O_CREAT | O_RDWR, FILE_MODE))==-1){ + print_message("failed to create file\n",1); + return -1; + } if (EROFS_setup() < 0 ){ return -1; }