X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fmirror_tests%2Fmirror_tests.c;fp=direct%2Ftimothy_tests%2Fmirror_tests%2Fmirror_tests.c;h=28b88b5d086da9c81a60d1e63034a5d599db6dd2;hp=641ceeb210e7959eda5632e5a27df9b8da73c2bf;hb=34c624da44aa052d44993239c5a3be0b802673c9;hpb=03d4cddfabaa24b55be2f805643e7323f9fc2612 diff --git a/direct/timothy_tests/mirror_tests/mirror_tests.c b/direct/timothy_tests/mirror_tests/mirror_tests.c index 641ceeb..28b88b5 100644 --- a/direct/timothy_tests/mirror_tests/mirror_tests.c +++ b/direct/timothy_tests/mirror_tests/mirror_tests.c @@ -166,10 +166,10 @@ int run_random_test(int num_of_random_tests) int id=0; int test_id=-1; int num_of_tests_before_check=10; - char message[100]; + char message[200]; arg_temp args_struct; for (y=0;(y*num_of_tests_before_check)d_name); + strcpy(message,linux_current_file->d_name); + print_message(3,"opened file: "); + print_message(3,message); + print_message(3,"\n"); + } + if (NULL!=linux_current_file && + 0!=strcmp(message,".")&& + 0!=strcmp(message,"..")){ + // strcpy(message,linux_current_file->d_name); + //sprintf("file opened: %s\n",linux_current_file->d_name); + //print_message(3,message); + print_message(3,"added file to list\n"); + strcpy(linux_file_list[y],message); + y++; + sprintf(message,"file added to list: %s\n",linux_file_list[x]); + print_message(3,message); } } closedir(linux_open_dir); + } else { + print_message(3,"failed to populate linux test dir\n"); } + + for (x=0;xd_name); // generate_array_of_objects_in_yaffs(); // generate_array_of_objects_in_linux();