aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/tests/compiletest.rs
diff options
context:
space:
mode:
authorGravatar Adam Greig <adam@adamgreig.com> 2022-01-12 01:46:31 +0000
committerGravatar Adam Greig <adam@adamgreig.com> 2022-01-12 01:51:00 +0000
commitf868247e5de24348e812df7cd324b26e5f8ceda0 (patch)
tree5146b9ce32ffed2b3baa6b6f3ac3fa88de50db61 /cortex-m-rt/tests/compiletest.rs
parent91f69a92f347d76402c04a590e515f0e83355acb (diff)
downloadcortex-m-f868247e5de24348e812df7cd324b26e5f8ceda0.tar.gz
cortex-m-f868247e5de24348e812df7cd324b26e5f8ceda0.tar.zst
cortex-m-f868247e5de24348e812df7cd324b26e5f8ceda0.zip
Fix cortex-m-rt compiletest tests
Diffstat (limited to 'cortex-m-rt/tests/compiletest.rs')
-rw-r--r--cortex-m-rt/tests/compiletest.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/cortex-m-rt/tests/compiletest.rs b/cortex-m-rt/tests/compiletest.rs
index ba2ef73..cf63d22 100644
--- a/cortex-m-rt/tests/compiletest.rs
+++ b/cortex-m-rt/tests/compiletest.rs
@@ -7,11 +7,11 @@ fn run_mode(mode: &'static str) {
config.mode = mode.parse().expect("Invalid mode");
config.src_base = PathBuf::from(format!("tests/{}", mode));
- // config.link_deps(); // Populate config.target_rustcflags with dependencies on the path
config.target_rustcflags = Some(
- "-L target/debug -L target/debug/deps -C panic=abort --cfg feature=\"device\"".to_owned(),
+ "-L ../target/debug -L ../target/debug/deps -C panic=abort --cfg feature=\"device\""
+ .to_owned(),
);
- // config.clean_rmeta(); // If your tests import the parent crate, this helps with E0464
+ config.clean_rmeta(); // If your tests import the parent crate, this helps with E0464
compiletest::run_tests(&config);
}