X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_ftruncate_big_file.c;fp=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_ftruncate_EFBIG.c;h=dcb25fa831614a08955dc200d6a3756e70689765;hb=24f00634ca4584100b60d7b68675c1c9c4646ee8;hp=cff9ee06a9770bf0803b760300de24af51365c4c;hpb=4966064e2d0557eb3132888bf31ed1edac0fef4b;p=yaffs2.git diff --git a/direct/timothy_tests/quick_tests/test_yaffs_ftruncate_EFBIG.c b/direct/timothy_tests/quick_tests/test_yaffs_ftruncate_big_file.c similarity index 89% rename from direct/timothy_tests/quick_tests/test_yaffs_ftruncate_EFBIG.c rename to direct/timothy_tests/quick_tests/test_yaffs_ftruncate_big_file.c index cff9ee0..dcb25fa 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_ftruncate_EFBIG.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_ftruncate_big_file.c @@ -11,11 +11,11 @@ * published by the Free Software Foundation. */ -#include "test_yaffs_ftruncate_EFBIG.h" +#include "test_yaffs_ftruncate_big_file.h" static int handle = -1; -int test_yaffs_ftruncate_EFBIG(void) +int test_yaffs_ftruncate_big_file(void) { int output = 0; int error_code = 0; @@ -25,7 +25,7 @@ int test_yaffs_ftruncate_EFBIG(void) output = yaffs_ftruncate(handle,10000000000000000000000000000000); if (output < 0){ error_code = yaffs_get_error(); - if (abs(error_code) == EINVAL){ /* yaffs uses the error EINVAL instead of EFBIG */ + if (abs(error_code) == EINVAL){ /* yaffs uses the error EINVAL instead of big_file */ return 1; } else { print_message("different error than expected\n", 2); @@ -41,7 +41,7 @@ int test_yaffs_ftruncate_EFBIG(void) } } -int test_yaffs_ftruncate_EFBIG_clean(void){ +int test_yaffs_ftruncate_big_file_clean(void){ /* change file size back to orignal size */ int output = 0; if (handle >= 0){