projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs More tests.
[yaffs2.git]
/
direct
/
timothy_tests
/
quick_tests
/
test_yaffs_ftruncate_big_file.c
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 cff9ee06a9770bf0803b760300de24af51365c4c..dcb25fa831614a08955dc200d6a3756e70689765 100644
(file)
--- 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.
*/
* published by the Free Software Foundation.
*/
-#include "test_yaffs_ftruncate_
EFBIG
.h"
+#include "test_yaffs_ftruncate_
big_file
.h"
static int handle = -1;
static int handle = -1;
-int test_yaffs_ftruncate_
EFBIG
(void)
+int test_yaffs_ftruncate_
big_file
(void)
{
int output = 0;
int error_code = 0;
{
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();
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);
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){
/* change file size back to orignal size */
int output = 0;
if (handle >= 0){