yaffs Merging changes made to quick tests.
authorTimothy Manning <tfhmanning@gmail.com>
Mon, 15 Nov 2010 02:11:37 +0000 (15:11 +1300)
committerTimothy Manning <tfhmanning@gmail.com>
Mon, 15 Nov 2010 02:11:37 +0000 (15:11 +1300)
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
direct/timothy_tests/quick_tests/quick_tests.c
direct/timothy_tests/quick_tests/test_yaffs_close_EBADF.c
direct/timothy_tests/quick_tests/test_yaffs_fchmod_EBADF.c

index a58fc08..fcf312d 100644 (file)
@@ -91,7 +91,7 @@ void quit_quick_tests(int exit_code)
        if (num_of_tests_pass==total_number_of_tests &&  num_of_tests_failed==0){
                printf("\t OK \n");
        }
-       printf("tests: %d passed %d failed out of %d tests\n\n\n",num_of_tests_pass,num_of_tests_failed,total_number_of_tests);
+       printf("out of %d tests: %d passed %d failed\n\n\n",total_number_of_tests,num_of_tests_pass,num_of_tests_failed);
        yaffs_unmount(YAFFS_MOUNT_POINT);
        exit(exit_code);
 }
index 1c83019..7a0184d 100644 (file)
@@ -15,7 +15,7 @@
 
 #include "test_yaffs_open.h"
 
-static int handle = 0;
+static int handle = -1;
 
 int test_yaffs_close_EBADF(void)
 {
index 0a521b8..9e19636 100644 (file)
@@ -40,5 +40,4 @@ int test_yaffs_fchmod_EBADF(void)
 int test_yaffs_fchmod_EBADF_clean(void)
 {
        return 1;
-
 }