aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Bebenita <[email protected]>2010-08-16 15:04:33 -0700
committerMichael Bebenita <[email protected]>2010-08-16 15:05:57 -0700
commit14f5b5750d6509ca69180341b82e99f7fbf9fddb (patch)
treed00b9655c4bc6517b32273411d1962722363b379
parentPulled rust_srv in its own file. Some cleanup, and added varargs to assertion... (diff)
downloadrust-14f5b5750d6509ca69180341b82e99f7fbf9fddb.tar.xz
rust-14f5b5750d6509ca69180341b82e99f7fbf9fddb.zip
Un-xfailed working tests.
-rw-r--r--src/Makefile27
-rw-r--r--src/rt/circular_buffer.cpp3
-rw-r--r--src/test/run-pass/acyclic-unwind.rs5
3 files changed, 12 insertions, 23 deletions
diff --git a/src/Makefile b/src/Makefile
index eb479440..033fb919 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 e5432bd9..b2eab97e 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 c9ed2ae3..38de9082 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;
}
}