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 a58fc0881dd23f78de4b5154a40c2c8abc85ecdf..fcf312d671586664bfe6f3b777b249e0caa49aa4 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 1c830194a34df31d581e65eb6f32ee6bf120eb9f..7a0184d9de29ac30e23dbf561cd6beef4e44d7ce 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 0a521b8b03cf63c89b189e8fc878363ae628fd1e..9e196368345323f07430772e58035e445af3525a 100644 (file)
@@ -40,5 +40,4 @@ int test_yaffs_fchmod_EBADF(void)
 int test_yaffs_fchmod_EBADF_clean(void)
 {
        return 1;
-
 }