Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/DoBi/master' into install_bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
nomius10 committed Mar 20, 2021
2 parents 0f7423d + 923f30b commit 8b73832
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/by-util/test_install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,3 +358,18 @@ fn test_install_target_file_dev_null() {
ucmd.arg(file1).arg(file2).succeeds().no_stderr();
assert!(at.file_exists(file2));
}

#[test]
fn test_install_copy_file_leading_dot() {
let (at, mut ucmd) = at_and_ucmd!();
let dir1 = "test_install_target_new_file_dir_l";
let dir2 = "test_install_target_new_file_dir_m";
let file1 = "test_install_target_file_file_l1";

at.mkdir(dir1);
at.mkdir(dir2);
at.touch(&format!("{}/{}", dir1, file1));

ucmd.arg(format!("{}/{}", dir1, file1)).arg(dir2).succeeds().no_stderr();
assert!(at.file_exists(&format!("{}/{}", dir2, file1)));
}

0 comments on commit 8b73832

Please sign in to comment.