File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -18,16 +18,14 @@ links = "cortex-m-rt" # Prevent multiple versions of cortex-m-rt being linked
18
18
19
19
[dependencies ]
20
20
cortex-m-rt-macros = { path = " macros" , version = " =0.7.0" }
21
- # Note: Do not depend on `cortex-m` here. This crate is used for testing `cortex-m`, so we need to
22
- # avoid pulling in multiple versions of `cortex-m`.
23
21
24
22
[dev-dependencies ]
25
23
cortex-m = { version = " 0.7.4" , path = " .." }
26
24
panic-halt = " 0.2.0"
27
25
cortex-m-semihosting = " 0.3"
28
26
29
27
[target .'cfg(not(target_os = "none"))' .dev-dependencies ]
30
- compiletest_rs = " 0.4.0 "
28
+ compiletest_rs = " 0.7 "
31
29
32
30
[[example ]]
33
31
name = " device"
Original file line number Diff line number Diff line change 6
6
#![ no_std]
7
7
#![ no_main]
8
8
9
- extern crate cortex_m;
10
9
extern crate cortex_m_rt;
11
10
extern crate panic_halt;
12
11
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ fn run_mode(mode: &'static str) {
7
7
8
8
config. mode = mode. parse ( ) . expect ( "Invalid mode" ) ;
9
9
config. src_base = PathBuf :: from ( format ! ( "tests/{}" , mode) ) ;
10
- // config.link_deps(); // Populate config.target_rustcflags with dependencies on the path
11
10
config. target_rustcflags = Some (
12
- "-L target/debug -L target/debug/deps -C panic=abort --cfg feature=\" device\" " . to_owned ( ) ,
11
+ "-L ../target/debug -L ../target/debug/deps -C panic=abort --cfg feature=\" device\" "
12
+ . to_owned ( ) ,
13
13
) ;
14
- // config.clean_rmeta(); // If your tests import the parent crate, this helps with E0464
14
+ config. clean_rmeta ( ) ; // If your tests import the parent crate, this helps with E0464
15
15
16
16
compiletest:: run_tests ( & config) ;
17
17
}
You can’t perform that action at this time.
0 commit comments