Have updated yaffs direct tests and added README files to the tests.
[yaffs2.git] / direct / timothy_tests / linux_tests / linux_test.c
index 429e74fac5d0c5f9e9335382e2f852bd39ad2a72..e450236560b92cb03ae3617e662f691d307780ae 100644 (file)
@@ -149,6 +149,10 @@ 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);