Skip to content

Commit b4c5349

Browse files
committed
run_make_support: rename recursive_diff to assert_recursive_eq
1 parent 4f923bf commit b4c5349

File tree

1 file changed

+3
-3
lines changed
  • src/tools/run-make-support/src

1 file changed

+3
-3
lines changed

src/tools/run-make-support/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ pub fn set_host_rpath(cmd: &mut Command) {
117117
});
118118
}
119119

120-
/// Check that all files in `dir1` exist and have the same content in `dir2`. Panic otherwise.
121-
pub fn recursive_diff(dir1: impl AsRef<Path>, dir2: impl AsRef<Path>) {
120+
/// Assert that all files in `dir1` exist and have the same content in `dir2`
121+
pub fn assert_recursive_eq(dir1: impl AsRef<Path>, dir2: impl AsRef<Path>) {
122122
let dir2 = dir2.as_ref();
123123
read_dir(dir1, |entry_path| {
124124
let entry_name = entry_path.file_name().unwrap();
125125
if entry_path.is_dir() {
126-
recursive_diff(&entry_path, &dir2.join(entry_name));
126+
assert_recursive_eq(&entry_path, &dir2.join(entry_name));
127127
} else {
128128
let path2 = dir2.join(entry_name);
129129
let file1 = fs_wrapper::read(&entry_path);

0 commit comments

Comments
 (0)