Skip to content

Commit a41ceeb

Browse files
committed
fix tests
1 parent 49a8438 commit a41ceeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: testsuite/src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ mod tests {
2929
#[test]
3030
#[cfg(not(feature = "semihosting"))] // QEMU does not model the cycle counter
3131
fn cycle_count(p: &mut cortex_m::Peripherals) {
32+
use cortex_m::peripheral::DWT;
33+
3234
#[cfg(not(armv6m))]
3335
{
34-
use cortex_m::peripheral::DWT;
35-
3636
assert!(DWT::has_cycle_counter());
3737

3838
p.DCB.enable_trace();

0 commit comments

Comments
 (0)