Un-xfailed working tests.

This commit is contained in:
Michael Bebenita 2010-08-16 15:04:33 -07:00
parent b40a9fa787
commit 14f5b5750d
3 changed files with 12 additions and 23 deletions

View File

@ -367,30 +367,13 @@ self: $(CFG_COMPILER)
# Temporarily xfail the entire multi-tasking system, pending resolution
# of inter-task shutdown races introduced with notification proxies.
TASK_XFAILS := test/run-pass/acyclic-unwind.rs \
test/run-pass/basic.rs \
test/run-pass/clone-with-exterior.rs \
test/run-pass/comm.rs \
test/run-pass/lazychan.rs \
test/run-pass/many.rs \
test/run-pass/obj-dtor.rs \
test/run-pass/preempt.rs \
test/run-pass/spawn-fn.rs \
test/run-pass/spawn-module-qualified.rs \
test/run-pass/spawn.rs \
test/run-pass/task-comm-0.rs \
test/run-pass/task-comm-1.rs \
test/run-pass/task-comm-2.rs \
TASK_XFAILS := test/run-pass/clone-with-exterior.rs \
test/run-pass/task-comm-3.rs \
test/run-pass/task-comm-7.rs \
test/run-pass/task-comm-8.rs \
test/run-pass/task-comm-9.rs \
test/run-pass/task-comm-10.rs \
test/run-pass/task-comm-11.rs \
test/run-pass/task-life-0.rs \
test/run-pass/task-comm.rs \
test/run-pass/threads.rs \
test/run-pass/yield.rs
test/run-pass/task-comm.rs
TEST_XFAILS_X86 := $(TASK_XFAILS) \
test/run-pass/bind-obj-ctor.rs \
@ -411,10 +394,7 @@ TEST_XFAILS_X86 := $(TASK_XFAILS) \
test/run-pass/obj-as.rs \
test/run-pass/task-comm.rs \
test/run-pass/vec-slice.rs \
test/run-pass/task-comm-2.rs \
test/run-pass/task-comm-3.rs \
test/run-pass/task-comm-5.rs \
test/run-pass/task-comm-6.rs \
test/compile-fail/bad-recv.rs \
test/compile-fail/bad-send.rs \
test/compile-fail/infinite-tag-type-recursion.rs \
@ -533,6 +513,9 @@ TEST_XFAILS_LLVM := $(TASK_XFAILS) \
task-comm-7.rs \
task-comm-8.rs \
task-comm-9.rs \
task-comm-10.rs \
task-comm-11.rs \
task-life-0.rs \
threads.rs \
type-sizes.rs \
u8-incr.rs \

View File

@ -33,7 +33,8 @@ circular_buffer::circular_buffer(rust_dom *dom, size_t unit_sz) :
circular_buffer::~circular_buffer() {
dom->log(rust_log::MEM, "~circular_buffer 0x%" PRIxPTR, this);
I(dom, _buffer);
W(dom, _unread == 0, "~circular_buffer with %d unread bytes", _unread);
W(dom, _unread == 0,
"freeing circular_buffer with %d unread bytes", _unread);
dom->free(_buffer);
}

View File

@ -13,6 +13,11 @@ io fn f(chan[int] c)
while (true) {
// spin waiting for the parent to kill us.
log "child waiting to die...";
// while waiting to die, the messages we are
// sending to the channel are never received
// by the parent, therefore this test cases drops
// messages on the floor
c <| 1;
}
}