From 1c709b3d8d049e26bb61e84991e504d38ea07231 Mon Sep 17 00:00:00 2001 From: Per Lindgren Date: Tue, 26 Oct 2021 20:04:07 +0200 Subject: [PATCH] run tests added --- ci/expected/lock_cost.run | 0 ci/expected/lockall_cost.run | 0 examples/lock_cost.rs | 2 ++ examples/lockall_cost.rs | 2 ++ 4 files changed, 4 insertions(+) create mode 100644 ci/expected/lock_cost.run create mode 100644 ci/expected/lockall_cost.run diff --git a/ci/expected/lock_cost.run b/ci/expected/lock_cost.run new file mode 100644 index 0000000000..e69de29bb2 diff --git a/ci/expected/lockall_cost.run b/ci/expected/lockall_cost.run new file mode 100644 index 0000000000..e69de29bb2 diff --git a/examples/lock_cost.rs b/examples/lock_cost.rs index fe07c93376..887a3a8a00 100644 --- a/examples/lock_cost.rs +++ b/examples/lock_cost.rs @@ -19,6 +19,8 @@ mod app { #[init] fn init(_: init::Context) -> (Shared, Local, init::Monotonics) { + use cortex_m_semihosting::debug; + debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator (Shared { shared: 0 }, Local {}, init::Monotonics()) } diff --git a/examples/lockall_cost.rs b/examples/lockall_cost.rs index d3a5a8179c..ba87e8e488 100644 --- a/examples/lockall_cost.rs +++ b/examples/lockall_cost.rs @@ -19,6 +19,8 @@ mod app { #[init] fn init(_: init::Context) -> (Shared, Local, init::Monotonics) { + use cortex_m_semihosting::debug; + debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator (Shared { shared: 0 }, Local {}, init::Monotonics()) }