Skip to content

Commit e3603df

Browse files
authored
Merge pull request #244 from kflansburg/master
Normalize $SRC_DIR
2 parents bf3d0c0 + b33d463 commit e3603df

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/runtest.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2616,6 +2616,11 @@ actual:\n\
26162616
let parent_dir = self.testpaths.file.parent().unwrap();
26172617
normalize_path(parent_dir, "$DIR");
26182618

2619+
if let Ok(src_dir_str) = std::env::var("CARGO_MANIFEST_DIR") {
2620+
let src_dir = Path::new(&src_dir_str);
2621+
normalize_path(src_dir, "$SRC_DIR");
2622+
}
2623+
26192624
// Paths into the build directory
26202625
let test_build_dir = &self.config.build_base;
26212626
normalize_path(test_build_dir, "$TEST_BUILD_DIR");

0 commit comments

Comments
 (0)