aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/Cargo.toml1
-rw-r--r--testsuite/minitest/macros/src/lib.rs4
2 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/Cargo.toml b/testsuite/Cargo.toml
index 17f1562..be3e43d 100644
--- a/testsuite/Cargo.toml
+++ b/testsuite/Cargo.toml
@@ -13,6 +13,7 @@ semihosting = ["cortex-m-semihosting", "minitest/semihosting"]
cortex-m-rt.path = "../cortex-m-rt"
cortex-m.path = ".."
minitest.path = "minitest"
+critical-section = "1.0.0"
[dependencies.rtt-target]
version = "0.3.1"
diff --git a/testsuite/minitest/macros/src/lib.rs b/testsuite/minitest/macros/src/lib.rs
index 6570502..e8a1087 100644
--- a/testsuite/minitest/macros/src/lib.rs
+++ b/testsuite/minitest/macros/src/lib.rs
@@ -215,8 +215,8 @@ fn tests_impl(args: TokenStream, input: TokenStream) -> parse::Result<TokenStrea
unsafe {
::rtt_target::set_print_channel_cs(
channels.up.0,
- &((|arg, f| cortex_m::interrupt::free(|_| f(arg)))
- as rtt_target::CriticalSectionFunc),
+ &((|arg, f| ::critical_section::with(|_| f(arg)))
+ as ::rtt_target::CriticalSectionFunc),
);
}
});