From 03d4cddfabaa24b55be2f805643e7323f9fc2612 Mon Sep 17 00:00:00 2001 From: Timothy Manning Date: Wed, 15 Dec 2010 15:31:57 +1300 Subject: [PATCH] yaffs Fixed some more bugs in direct/timothy_tests/mirror_tests Signed-off-by: Timothy Manning --- direct/timothy_tests/mirror_tests/mirror_tests.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/direct/timothy_tests/mirror_tests/mirror_tests.c b/direct/timothy_tests/mirror_tests/mirror_tests.c index 88c509f..641ceeb 100644 --- a/direct/timothy_tests/mirror_tests/mirror_tests.c +++ b/direct/timothy_tests/mirror_tests/mirror_tests.c @@ -228,6 +228,7 @@ int compare_linux_and_yaffs(void) strcpy(yaffs_file_list[x],yaffs_current_file->d_name); } } + yaffs_closedir(yaffs_open_dir); } linux_open_dir = opendir(linux_struct.root_path); @@ -245,6 +246,7 @@ int compare_linux_and_yaffs(void) strcpy(linux_file_list[x],linux_current_file->d_name); } } + closedir(linux_open_dir); } @@ -367,7 +369,8 @@ void clean_dir(void) unlink(file); } } - unlink(linux_struct.root_path); + closedir(linux_open_dir); + rmdir(linux_struct.root_path); } } -- 2.30.2