From 34c624da44aa052d44993239c5a3be0b802673c9 Mon Sep 17 00:00:00 2001 From: Timothy Manning Date: Thu, 16 Dec 2010 11:22:32 +1300 Subject: [PATCH] yaffs Fixed some more bugs in direct/timothy_tests/mirror_tests Signed-off-by: Timothy Manning --- .../timothy_tests/mirror_tests/mirror_tests.c | 99 ++++++++++++++++--- 1 file changed, 87 insertions(+), 12 deletions(-) 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(); -- 2.30.2