1
Fork 0

Register new snapshots, purge log_err and log_full in favour of log(...).

This commit is contained in:
Graydon Hoare 2011-12-22 17:53:53 -08:00
parent ccb5b6fb25
commit f0dfbe7b1b
243 changed files with 705 additions and 702 deletions

View file

@ -35,7 +35,7 @@ fn test_join_chan() {
task::spawn_notify((), winner, comm::chan(p));
let s = comm::recv(p);
#error("received task status message");
log_full(core::error, s);
log(error, s);
alt s {
task::exit(_, task::tr_success.) {/* yay! */ }
_ { fail "invalid task status received" }
@ -52,7 +52,7 @@ fn test_join_chan_fail() {
task::spawn_notify((), failer, comm::chan(p));
let s = comm::recv(p);
#error("received task status message");
log_full(core::error, s);
log(error, s);
alt s {
task::exit(_, task::tr_failure.) {/* yay! */ }
_ { fail "invalid task status received" }
@ -70,7 +70,7 @@ fn test_join_convenient() {
#[ignore]
fn spawn_polymorphic() {
// FIXME #1038: Can't spawn palymorphic functions
/*fn foo<send T>(x: T) { log_full(core::error, x); }
/*fn foo<send T>(x: T) { log(error, x); }
task::spawn(true, foo);
task::spawn(42, foo);*/