projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs Fixed some more bugs in direct/timothy_tests/mirror_tests
[yaffs2.git]
/
direct
/
timothy_tests
/
mirror_tests
/
mirror_tests.c
diff --git
a/direct/timothy_tests/mirror_tests/mirror_tests.c
b/direct/timothy_tests/mirror_tests/mirror_tests.c
index 88c509f07787f1e8d323c5204ad5e8538fa093c1..641ceeb210e7959eda5632e5a27df9b8da73c2bf 100644
(file)
--- 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);
}
}
strcpy(yaffs_file_list[x],yaffs_current_file->d_name);
}
}
+ yaffs_closedir(yaffs_open_dir);
}
linux_open_dir = opendir(linux_struct.root_path);
}
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);
}
}
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(file);
}
}
- unlink(linux_struct.root_path);
+ closedir(linux_open_dir);
+ rmdir(linux_struct.root_path);
}
}
}
}