X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=inline;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_open_EISDIR.c;h=b15156fa8a364690fd5edb6ae63604eedcc96a2f;hb=e0b53924703fe414a99dbf49682cf8459540a3e5;hp=d86e081ff9215ff06a6a3085355f9f583cdcc797;hpb=78fc80afe393d5730ab464db3dc30f6ffb654196;p=yaffs2.git diff --git a/direct/timothy_tests/quick_tests/test_yaffs_open_EISDIR.c b/direct/timothy_tests/quick_tests/test_yaffs_open_EISDIR.c index d86e081..b15156f 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_open_EISDIR.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_open_EISDIR.c @@ -32,12 +32,11 @@ int test_yaffs_open_EISDIR(void){ return -1; } } - else if (output >=0){ + else { printf("non existant directory opened.(which is a bad thing)\n"); return -1; } - /* the program should not get here but the compiler is complaining */ - return -1; + } int test_yaffs_open_EISDIR_clean(void){ if (handle >=0){