X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_ftruncate_EROFS.c;h=192a43b5ca685e4d205c1e5a6bd2ebf8aaf2866f;hp=57a3ab5e2aef8557c02b6db03dc104fa76095eaf;hb=41a39f326b4b732a36310275c0f4489c07117679;hpb=16df96a0d52168ffd252cb5547df303768e3519f diff --git a/direct/timothy_tests/quick_tests/test_yaffs_ftruncate_EROFS.c b/direct/timothy_tests/quick_tests/test_yaffs_ftruncate_EROFS.c index 57a3ab5..192a43b 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_ftruncate_EROFS.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_ftruncate_EROFS.c @@ -20,8 +20,11 @@ int test_yaffs_ftruncate_EROFS(void) int output = 0; 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_ftruncate(handle,FILE_SIZE_TRUNCATED ); if (output < 0){ error_code=yaffs_get_error();