projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs Fixed some bugs in quick tests and added some more tests.
[yaffs2.git]
/
direct
/
timothy_tests
/
quick_tests
/
test_yaffs_sync_ENODEV.c
diff --git
a/direct/timothy_tests/quick_tests/test_yaffs_sync_ENOTDIR.c
b/direct/timothy_tests/quick_tests/test_yaffs_sync_ENODEV.c
similarity index 84%
rename from
direct/timothy_tests/quick_tests/test_yaffs_sync_ENOTDIR.c
rename to
direct/timothy_tests/quick_tests/test_yaffs_sync_ENODEV.c
index 0961af20c6789c595289e62670ea6c90a44a578f..90ae4a41bf63f324f7dd7f6adfd8f3185a74185b 100644
(file)
--- a/
direct/timothy_tests/quick_tests/test_yaffs_sync_ENOTDIR.c
+++ b/
direct/timothy_tests/quick_tests/test_yaffs_sync_ENODEV.c
@@
-11,17
+11,17
@@
* published by the Free Software Foundation.
*/
* published by the Free Software Foundation.
*/
-#include "test_yaffs_sync_ENO
TDIR
.h"
+#include "test_yaffs_sync_ENO
DEV
.h"
-int test_yaffs_sync_ENO
TDIR
(void)
+int test_yaffs_sync_ENO
DEV
(void)
{
int error_code=-1;
int output = yaffs_sync("non-existing-dir/foo");
if (output<0){
error_code=yaffs_get_error();
{
int error_code=-1;
int output = yaffs_sync("non-existing-dir/foo");
if (output<0){
error_code=yaffs_get_error();
- if (abs(error_code)==ENO
TDIR
){
+ if (abs(error_code)==ENO
DEV
){
return 1;
} else {
print_message("returned error does not match the the expected error\n",2);
return 1;
} else {
print_message("returned error does not match the the expected error\n",2);
@@
-36,7
+36,7
@@
int test_yaffs_sync_ENOTDIR(void)
}
}
-int test_yaffs_sync_ENO
TDIR
_clean(void)
+int test_yaffs_sync_ENO
DEV
_clean(void)
{
return 1;
}
{
return 1;
}