Have updated yaffs direct tests and added README files to the tests.
[yaffs2.git] / direct / timothy_tests / linux_tests / linux_test.c
index 88732ad66a69b9931e7c98cdafd80541f80c3b22..e450236560b92cb03ae3617e662f691d307780ae 100644 (file)
@@ -47,7 +47,7 @@ void init(int argc, char *argv[])
        sprintf(message,"seeding srand with: %d\n",x);
        print_message(2,message);
        srand(x);
-       yaffs_set_trace(0);
+
 
 
        do {
@@ -149,13 +149,17 @@ dir_struct * scan_dir(void)
 
 
        open_dir=opendir(ROOT_PATH);
+       if (open_dir < 0){
+               sprintf(message,"failed to find the directory: %s",ROOT_PATH);
+               print_message(1,message);
+       }
        dir_data=readdir(open_dir);
        while(dir_data){
                dir->path_list=linked_list_add_node(HEAD,dir->path_list);
                dir->path_list->string=malloc(strlen(dir_data->d_name)+1);
                strcpy(dir->path_list->string,dir_data->d_name);
                sprintf(message,"opened file: %s\n",dir->path_list->string);
-               print_message(3,message);
+               print_message(5,message);
                dir_data=readdir(open_dir);
        }
        closedir(open_dir);