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_truncate_big_file.c
diff --git
a/direct/timothy_tests/quick_tests/test_yaffs_truncate_EFBIG.c
b/direct/timothy_tests/quick_tests/test_yaffs_truncate_big_file.c
similarity index 87%
rename from
direct/timothy_tests/quick_tests/test_yaffs_truncate_EFBIG.c
rename to
direct/timothy_tests/quick_tests/test_yaffs_truncate_big_file.c
index 0d698654916f3fe3a1a108379d55e818bf781cbe..270bf49846774d3ca78c0410ad9be70dc659d805 100644
(file)
--- a/
direct/timothy_tests/quick_tests/test_yaffs_truncate_EFBIG.c
+++ b/
direct/timothy_tests/quick_tests/test_yaffs_truncate_big_file.c
@@
-11,10
+11,10
@@
* published by the Free Software Foundation.
*/
* published by the Free Software Foundation.
*/
-#include "test_yaffs_truncate_
EFBIG
.h"
+#include "test_yaffs_truncate_
big_file
.h"
static int handle = -1;
static int handle = -1;
-int test_yaffs_truncate_
EFBIG
(void)
+int test_yaffs_truncate_
big_file
(void)
{
int error=0;
int output=0;
{
int error=0;
int output=0;
@@
-23,7
+23,7
@@
int test_yaffs_truncate_EFBIG(void)
output= yaffs_truncate("/yaffs2/foo",10000000000000000000000000000000000000000000 );
if (output<0){
error=yaffs_get_error();
output= yaffs_truncate("/yaffs2/foo",10000000000000000000000000000000000000000000 );
if (output<0){
error=yaffs_get_error();
- if (abs(error)==EINVAL){ /*in yaffs EINVAL is used instead of
EFBIG
*/
+ 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("received a different error than expected\n",2);
@@
-40,7
+40,7
@@
int test_yaffs_truncate_EFBIG(void)
}
}
}
}
-int test_yaffs_truncate_
EFBIG
_clean(void)
+int test_yaffs_truncate_
big_file
_clean(void)
{
return 1;
}
{
return 1;
}