X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_sync_ENOTDIR.c;h=0961af20c6789c595289e62670ea6c90a44a578f;hb=c7ada078b9d435ea7e7eb4732974135e15006537;hp=97fb2b14daeb33bdaacc7ab3d79a23d6937f2206;hpb=1d34c75c7f1f69ce5a746917b76d90c22e91ffe2;p=yaffs2.git 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 97fb2b1..0961af2 100644 --- 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 error_code=-1; int output = yaffs_sync("non-existing-dir/foo"); + if (output<0){ error_code=yaffs_get_error(); if (abs(error_code)==ENOTDIR){