aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2017-07-27 21:30:24 -0500
committerJorge Aparicio <jorge@japaric.io>2017-07-27 21:30:24 -0500
commit271df39bdba0690ea7ba77a6ff5d8d7edb9b8036 (patch)
tree26db49fa1a822a7a778dd903a2ce75ef1478f2ca /tests
parentb9f50e432eb2fe0f1276bb69c053bb9a7368675a (diff)
`Send`-ness check is now in rtfm-core
Diffstat (limited to 'tests')
-rw-r--r--tests/cfail/interrupt.rs6
-rw-r--r--tests/cfail/token-transfer.rs7
2 files changed, 10 insertions, 3 deletions
diff --git a/tests/cfail/interrupt.rs b/tests/cfail/interrupt.rs
index c70528f..f7879f4 100644
--- a/tests/cfail/interrupt.rs
+++ b/tests/cfail/interrupt.rs
@@ -14,7 +14,9 @@ app! {
tasks: {
// ERROR this interrupt doesn't exist
- EXTI33: {},
+ EXTI33: {
+ path: exti33,
+ },
},
}
@@ -23,3 +25,5 @@ fn init(_p: init::Peripherals) {}
fn idle() -> ! {
loop {}
}
+
+fn exti33() {}
diff --git a/tests/cfail/token-transfer.rs b/tests/cfail/token-transfer.rs
index d10b82b..38e8786 100644
--- a/tests/cfail/token-transfer.rs
+++ b/tests/cfail/token-transfer.rs
@@ -15,10 +15,13 @@ app! { //~ error bound `rtfm::Threshold: core::marker::Send` is not satisfied
static TOKEN: Option<Threshold> = None;
},
+ idle: {
+ resources: [TOKEN],
+ },
+
tasks: {
EXTI0: {
path: exti0,
- priority: 1,
resources: [TOKEN],
},
}
@@ -26,7 +29,7 @@ app! { //~ error bound `rtfm::Threshold: core::marker::Send` is not satisfied
fn init(_p: init::Peripherals, _r: init::Resources) {}
-fn idle() -> ! {
+fn idle(_t: &mut Threshold, _r: idle::Resources) -> ! {
loop {}
}