yaffs Adding more error code test programs to quick tests. note the bugs are still...
[yaffs2.git] / direct / timothy_tests / quick_tests / test_yaffs_open_file_ENOENT.c
diff --git a/direct/timothy_tests/quick_tests/test_yaffs_open_file_ENOENT.c b/direct/timothy_tests/quick_tests/test_yaffs_open_file_ENOENT.c
deleted file mode 100644 (file)
index ed57e2d..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#include "test_yaffs_open_file_ENOENT.h"
-
-static int handle=0;
-int test_yaffs_open_file_ENOENT(void){
-       int output=0;
-       int error_code=0;
-       /*printf("path %s\n",path); */
-       handle=yaffs_open("/yaffs2/non_existant_file", O_TRUNC| O_RDWR,FILE_MODE );
-       if (handle==-1){
-               error_code=yaffs_get_error();
-               if (error_code==ENOENT){
-                       return 1;
-               }
-       }
-       else if (output >=0){
-               printf("non existant file opened.(which is a bad thing)\n");
-               return -1;
-       }
-
-}
-int test_yaffs_open_file_ENOENT_clean(void){
-       return 1;
-}
-