From 14f5b5750d6509ca69180341b82e99f7fbf9fddb Mon Sep 17 00:00:00 2001 From: Michael Bebenita Date: Mon, 16 Aug 2010 15:04:33 -0700 Subject: [PATCH] Un-xfailed working tests. --- src/Makefile | 27 +++++---------------------- src/rt/circular_buffer.cpp | 3 ++- src/test/run-pass/acyclic-unwind.rs | 5 +++++ 3 files changed, 12 insertions(+), 23 deletions(-) diff --git a/src/Makefile b/src/Makefile index eb47944078a..033fb919778 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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 \ diff --git a/src/rt/circular_buffer.cpp b/src/rt/circular_buffer.cpp index e5432bd9618..b2eab97ebd0 100644 --- a/src/rt/circular_buffer.cpp +++ b/src/rt/circular_buffer.cpp @@ -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); } diff --git a/src/test/run-pass/acyclic-unwind.rs b/src/test/run-pass/acyclic-unwind.rs index c9ed2ae390a..38de90826a5 100644 --- a/src/test/run-pass/acyclic-unwind.rs +++ b/src/test/run-pass/acyclic-unwind.rs @@ -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; } }