Skip to content

Commit ef728e8

Browse files
committed
fix tests
1 parent 49a8438 commit ef728e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: testsuite/src/main.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ mod tests {
2828

2929
#[test]
3030
#[cfg(not(feature = "semihosting"))] // QEMU does not model the cycle counter
31+
#[cfg_attr(armv6m, allow(unused_variables))]
3132
fn cycle_count(p: &mut cortex_m::Peripherals) {
33+
use cortex_m::peripheral::DWT;
34+
3235
#[cfg(not(armv6m))]
3336
{
34-
use cortex_m::peripheral::DWT;
35-
3637
assert!(DWT::has_cycle_counter());
3738

3839
p.DCB.enable_trace();

0 commit comments

Comments
 (0)