From: Timothy Manning Date: Wed, 17 Nov 2010 02:31:12 +0000 (+1300) Subject: yaffs Found the bug. X-Git-Tag: linux-mainline-patchset-4~76 X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=fc8b640f9637823d87b9582c7edcb87adcd0383a yaffs Found the bug. Signed-off-by: Timothy Manning --- diff --git a/direct/timothy_tests/quick_tests/quick_tests.c b/direct/timothy_tests/quick_tests/quick_tests.c index 115525b..9fcc037 100644 --- a/direct/timothy_tests/quick_tests/quick_tests.c +++ b/direct/timothy_tests/quick_tests/quick_tests.c @@ -35,10 +35,6 @@ int main(int argc, char *argv[]){ print_message("\n\nrunning quick tests for yaffs\n\n", 0); for (x=0;x=0){ + } else { print_message("non existant directory opened.(which is a bad thing)\n",2); return -1; } diff --git a/direct/timothy_tests/quick_tests/test_yaffs_read_EINVAL.c b/direct/timothy_tests/quick_tests/test_yaffs_read_EINVAL.c index 27120b2..57f47fb 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_read_EINVAL.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_read_EINVAL.c @@ -20,7 +20,6 @@ int test_yaffs_read_EINVAL(void) { int error_code = 0; handle=yaffs_open(FILE_PATH,O_CREAT | O_RDWR, FILE_MODE); - printf("newly opend handle = %d handle\n",handle); char text[2000000]="\0"; int output=0; @@ -86,7 +85,6 @@ int test_yaffs_read_EINVAL_clean(void) if(output>=0){ output=yaffs_close(handle); if (output>=0){ - printf("closed the file, handle %d\n",handle); return 1; } else { print_message("could not close the handle\n",2);