From fc8b640f9637823d87b9582c7edcb87adcd0383a Mon Sep 17 00:00:00 2001 From: Timothy Manning Date: Wed, 17 Nov 2010 15:31:12 +1300 Subject: [PATCH] yaffs Found the bug. Signed-off-by: Timothy Manning --- direct/timothy_tests/quick_tests/quick_tests.c | 4 ---- direct/timothy_tests/quick_tests/test_yaffs_mount2.c | 1 - .../timothy_tests/quick_tests/test_yaffs_mount_ENODEV.c | 8 ++++---- direct/timothy_tests/quick_tests/test_yaffs_read_EINVAL.c | 2 -- 4 files changed, 4 insertions(+), 11 deletions(-) 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); -- 2.30.2