diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2017-04-21 15:41:03 -0500 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2017-04-21 15:41:03 -0500 |
| commit | 1c82f1b1190cb40a3502d5b74a8c98775a788850 (patch) | |
| tree | 4157ac304a4b372e7e4a79daaecf06e7a5c78664 /tests/cfail/lock.rs | |
| parent | 3e165f2a42b8f3c66e3e77742a54feb875ec4bd6 (diff) | |
raise_to -> Ceiling.raise
Diffstat (limited to 'tests/cfail/lock.rs')
| -rw-r--r-- | tests/cfail/lock.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/cfail/lock.rs b/tests/cfail/lock.rs index 60a441c..36541f2 100644 --- a/tests/cfail/lock.rs +++ b/tests/cfail/lock.rs @@ -8,7 +8,7 @@ static R1: Resource<i32, C2> = Resource::new(0); fn j1(prio: P3) { let ceil = prio.as_ceiling(); - rtfm::raise_to(ceil, &R1, |ceil| { + ceil.raise(&R1, |ceil| { //~^ error }); } @@ -18,7 +18,7 @@ fn j1(prio: P3) { fn j2(prio: P2) { let ceil = prio.as_ceiling(); - rtfm::raise_to(ceil, &R1, |_| {}); + ceil.raise(&R1, |_| {}); //~^ error // OK @@ -30,7 +30,7 @@ fn j3(prio: P1) { let ceil = prio.as_ceiling(); // OK - rtfm::raise_to(ceil, &R1, |ceil| { + ceil.raise(&R1, |ceil| { let r1 = R1.borrow(&prio, ceil); }) } @@ -41,7 +41,7 @@ static R2: Resource<i32, C16> = Resource::new(0); fn j4(prio: P1) { let ceil = prio.as_ceiling(); - rtfm::raise_to(ceil, &R2, |ceil| { + ceil.raise(&R2, |ceil| { //~^ error }); } |
