summaryrefslogtreecommitdiff
path: root/direct
diff options
context:
space:
mode:
authorTimothy Manning <tfhmanning@gmail.com>2010-12-15 15:31:57 +1300
committerTimothy Manning <tfhmanning@gmail.com>2010-12-15 15:31:57 +1300
commit03d4cddfabaa24b55be2f805643e7323f9fc2612 (patch)
tree82cc3034f092a5e29e58135005b0e4edbbd556e0 /direct
parent0d3edaead59b80265308f08d7ad3a8a41ad99de1 (diff)
yaffs Fixed some more bugs in direct/timothy_tests/mirror_tests
Signed-off-by: Timothy Manning <tfhmanning@gmail.com>
Diffstat (limited to 'direct')
-rw-r--r--direct/timothy_tests/mirror_tests/mirror_tests.c5
1 files changed, 4 insertions, 1 deletions
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);
}
}