mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tests/test: replace call to 'ln -s' with call to 'AtPath::symlink_file'
This commit is contained in:
parent
6a70d89e8c
commit
efd5921bda
1 changed files with 2 additions and 3 deletions
|
@ -437,10 +437,9 @@ fn test_not_is_not_empty() {
|
||||||
#[cfg(not(windows))]
|
#[cfg(not(windows))]
|
||||||
fn test_symlink_is_symlink() {
|
fn test_symlink_is_symlink() {
|
||||||
let scenario = TestScenario::new(util_name!());
|
let scenario = TestScenario::new(util_name!());
|
||||||
let mut ln = scenario.cmd("ln");
|
let at = &scenario.fixtures;
|
||||||
|
|
||||||
// creating symlinks requires admin on Windows
|
at.symlink_file("regular_file", "symlink");
|
||||||
ln.args(&["-s", "regular_file", "symlink"]).succeeds();
|
|
||||||
|
|
||||||
// FIXME: implement on Windows
|
// FIXME: implement on Windows
|
||||||
scenario.ucmd().args(&["-h", "symlink"]).succeeds();
|
scenario.ucmd().args(&["-h", "symlink"]).succeeds();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue