From 56c9ccc347c46e929dbcd5f0454f964f30c37c4e Mon Sep 17 00:00:00 2001 From: Joseph Crail Date: Sun, 22 May 2016 22:43:00 -0400 Subject: [PATCH] tests/common: remove prefixed chars on Windows --- tests/common/util.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/common/util.rs b/tests/common/util.rs index c0a28a0ea..1af869ce1 100755 --- a/tests/common/util.rs +++ b/tests/common/util.rs @@ -301,8 +301,8 @@ impl TestSet { // Instead of hardcoding the path relative to the current // directory, use Cargo's OUT_DIR to find path to executable. // This allows tests to be run using profiles other than debug. - let target_dir = path_concat!(env::var("OUT_DIR").unwrap(), "..", "..", ".."); - Path::new(&target_dir).join(PROGNAME).canonicalize().unwrap() + let target_dir = path_concat!(env::var("OUT_DIR").unwrap(), "..", "..", "..", PROGNAME); + PathBuf::from(AtPath::new(&Path::new(&target_dir)).root_dir_resolved()) }, util_name: String::from(util_name), fixtures: AtPath::new(&tmpd.as_ref().path()),