Fix tests with the swap operator

This commit is contained in:
Alex Crichton 2013-05-10 22:03:23 -04:00
parent 63c7e2f991
commit 60803e5fc8
2 changed files with 5 additions and 3 deletions

View file

@ -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) {