X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_read.c;h=d396ff607efa8075169568411b2b55dfb0bf9724;hp=9033107d9f5762e59870e54eec38662a9c6d9573;hb=6bdb202d06f1e3dc8cc00dea708ebbd7fb771342;hpb=26592c53da98ac887099559afbcb8dda05264e1c;ds=sidebyside diff --git a/direct/timothy_tests/quick_tests/test_yaffs_read.c b/direct/timothy_tests/quick_tests/test_yaffs_read.c index 9033107..d396ff6 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_read.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_read.c @@ -6,16 +6,19 @@ int test_yaffs_read(void){ int output=0; if (handle>0){ output=yaffs_read(handle, text, FILE_TEXT_NBYTES); - if (output>0){ + printf("output: %d\n",output); + if (output>0){ if (text==FILE_TEXT){ return 1; } else { printf("text does not match the the text that should be in the file\n"); + return -1; } } else{ - printf("error reading file"); + printf("error reading file\n"); + return -1; } } else {