projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs Still trying to find the bug.
[yaffs2.git]
/
direct
/
timothy_tests
/
quick_tests
/
test_yaffs_sync_ENOTDIR.c
diff --git
a/direct/timothy_tests/quick_tests/test_yaffs_sync_ENOTDIR.c
b/direct/timothy_tests/quick_tests/test_yaffs_sync_ENOTDIR.c
index 97fb2b14daeb33bdaacc7ab3d79a23d6937f2206..0961af20c6789c595289e62670ea6c90a44a578f 100644
(file)
--- a/
direct/timothy_tests/quick_tests/test_yaffs_sync_ENOTDIR.c
+++ b/
direct/timothy_tests/quick_tests/test_yaffs_sync_ENOTDIR.c
@@
-16,7
+16,9
@@
int test_yaffs_sync_ENOTDIR(void)
{
int test_yaffs_sync_ENOTDIR(void)
{
+ int error_code=-1;
int output = yaffs_sync("non-existing-dir/foo");
int output = yaffs_sync("non-existing-dir/foo");
+
if (output<0){
error_code=yaffs_get_error();
if (abs(error_code)==ENOTDIR){
if (output<0){
error_code=yaffs_get_error();
if (abs(error_code)==ENOTDIR){