- handle=test_yaffs_open();
- if (handle>=0){
- output= yaffs_truncate("/yaffs2/foo",10000000000000000000000000000000000000000000 );
- if (output<0){
- error=yaffs_get_error();
- if (abs(error)==EINVAL){ /*in yaffs EINVAL is used instead of big_file */
- return 1;
- } else {
- print_message("received a different error than expected\n",2);
- return -1;
- }
- } else{
- print_message("truncated a file to a massive size\n",2);
+
+ output= yaffs_truncate("/yaffs2/foo",10000000000000000000000000000000000000000000 );
+ if (output<0){
+ error=yaffs_get_error();
+ if (abs(error)==EINVAL){ /*in yaffs EINVAL is used instead of big_file */
+ return 1;
+ } else {
+ print_message("received a different error than expected\n",2);