mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
tests/common: remove prefixed chars on Windows
This commit is contained in:
parent
efce1ac3f9
commit
56c9ccc347
1 changed files with 2 additions and 2 deletions
|
@ -301,8 +301,8 @@ impl TestSet {
|
||||||
// Instead of hardcoding the path relative to the current
|
// Instead of hardcoding the path relative to the current
|
||||||
// directory, use Cargo's OUT_DIR to find path to executable.
|
// directory, use Cargo's OUT_DIR to find path to executable.
|
||||||
// This allows tests to be run using profiles other than debug.
|
// This allows tests to be run using profiles other than debug.
|
||||||
let target_dir = path_concat!(env::var("OUT_DIR").unwrap(), "..", "..", "..");
|
let target_dir = path_concat!(env::var("OUT_DIR").unwrap(), "..", "..", "..", PROGNAME);
|
||||||
Path::new(&target_dir).join(PROGNAME).canonicalize().unwrap()
|
PathBuf::from(AtPath::new(&Path::new(&target_dir)).root_dir_resolved())
|
||||||
},
|
},
|
||||||
util_name: String::from(util_name),
|
util_name: String::from(util_name),
|
||||||
fixtures: AtPath::new(&tmpd.as_ref().path()),
|
fixtures: AtPath::new(&tmpd.as_ref().path()),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue