Fix tests with the swap operator
This commit is contained in:
parent
63c7e2f991
commit
60803e5fc8
2 changed files with 5 additions and 3 deletions
|
|
@ -43,8 +43,8 @@ fn thread_ring(i: uint,
|
|||
// Send/Receive lots of messages.
|
||||
for uint::range(0, count) |j| {
|
||||
//error!("task %?, iter %?", i, j);
|
||||
let num_chan2 = replace(&mut num_chan, None);
|
||||
let num_port2 = replace(&mut num_port, None);
|
||||
let num_chan2 = util::replace(&mut num_chan, None);
|
||||
let num_port2 = util::replace(&mut num_port, None);
|
||||
num_chan = Some(ring::client::num(num_chan2.unwrap(), i * j));
|
||||
let port = num_port2.unwrap();
|
||||
match recv(port) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue