yaffs more tests for quick tests.
[yaffs2.git] / direct / timothy_tests / quick_tests / test_yaffs_truncate_EFBIG.c
index dd7cc86b61bf6854078ab68a35210fe2c5ff9c9d..0fc79af6ead130e0a13166748c51bf11d8efdc0a 100644 (file)
@@ -22,11 +22,11 @@ int test_yaffs_truncate_EFBIG(void){
                output= yaffs_truncate("/yaffs2/foo",10000000000000000000000000000000000000000000 );
                if (output<0){
                        error=yaffs_get_error();
-                       if (abs(error)==EINVAL){
+                       if (abs(error)==EINVAL){        /*in yaffs EINVAL is used instead of EFBIG */
                                return 1;
                        }
                        else {
-                               printf("recieved a different error than expected\n");
+                               printf("received a different error than expected\n");
                                return -1;
                        }
                }