about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2011-07-23Attempt to put out burning Windows tinderbox.Eric Holk-1/+1
2011-07-22More work on word-count.Eric Holk-33/+112
Updated the MapReduce protocol so that it's correct more often. It's still not perfect, but the bugs repro less often now. Also found a race condition in channel sending. The problem is that send and receive both need to refer to the _unread field in circular_buffer. For now I just grabbed the port lock to send. We can probably get around this by using atomics instead.
2011-07-22Adding test case dealing with communication and hashmaps.Eric Holk-0/+108
2011-07-22Task-ified the word count program.Eric Holk-53/+117
This meant most of the generic-ness of it had to go away, since our type system doesn't quite support it yet. Hopefully someday... This version has lots of memory management errors. My next commit will hopefully fix these.
2011-07-22Implement Macro By Example.Paul Stansifer-1/+34
2011-07-22Adding test case for #687.Eric Holk-0/+62
The test no longer repros after a lot of my recent channel work. Closes #687.
2011-07-22Fixing (or at least improving) translation of move semantics for send and ↵Eric Holk-4/+1
receive. This let's us run all of the task-comm tests.
2011-07-22Exercise self-calls and overriding together a bit more.Lindsey Kuper-0/+12
2011-07-22Getting rid of obsolete comments.Lindsey Kuper-3/+0
2011-07-22Commenting out the huge-memory-using lines in pfib.Eric Holk-2/+2
2011-07-22Add xfail-stage3 directives to testsBrian Anderson-0/+38
The new test runners run stage 3
2011-07-22Revert "Enable run-pass/lib-run on win32. Closes #714"Marijn Haverbeke-0/+7
This reverts commit 1348a383c39a083424280ab4f4d20b622e1769a6. Seems that this test is still broken on win.
2011-07-22Fix unboxing in alias passMarijn Haverbeke-0/+8
The alias checker would only deref once for autoderef, and only deref boxes. It should now do the right thing. Closes #725.
2011-07-21Enable run-pass/lib-run on win32. Closes #714Brian Anderson-7/+0
2011-07-21Disable run-pass/lib-io.rs on macBrian Anderson-0/+6
2011-07-21Use correct win file open constants, per MinGWBrian Anderson-8/+7
2011-07-21Instantiate function preconditions inside the function bodyTim Chevalier-0/+8
so that if we have a function like: f(...) : p(x) { ... } p(x) is true inside the body of f. Closes #694.
2011-07-21Un-xfail tests.Lindsey Kuper-8/+0
2011-07-21Improving move semantics for channel operations.Eric Holk-9/+4
This lets us un-XFAIL task-comm-10.rs.
2011-07-21Lots of work on memory tracking and channels.Eric Holk-6/+19
We're trying to get closer to doing correct move semantics for channel operations. This involves a lot of cleanup (such as removing the unused sched parameter from rust_vec constructor) and making circular_buffer kernel_owned. Added tagging for memory allocations. This means we give a string tag to everything we allocate. If we leak something and TRACK_ALLOCATIONS is enabled, then it's much easier now to tell exactly what is leaking.
2011-07-20Parse nil literals (including in patterns)Tim Chevalier-0/+8
Closes #622.
2011-07-20Test method overriding a little more.Lindsey Kuper-0/+17
2011-07-20Test case for issue #718.Lindsey Kuper-0/+27
2011-07-20Method overriding tests suddenly pass valgrind for some reason.Lindsey Kuper-5/+1
I'm not sure if this is because of changes to glue generation in the last few days while I've been working on other things, or if it's a side effect of the improvements I made to typechecking for anonymous objects, or something else, but I guess I'll take it! Closes issue #543.
2011-07-20'Overriding' is a more accurate name than 'overloading' for these.Lindsey Kuper-0/+0
2011-07-19Typechecking self-calls in anon objs. Closes #540.Lindsey Kuper-4/+1
2011-07-19Beginnings of support for constrained typesTim Chevalier-6/+26
Programs with constrained types now parse and typecheck, but typestate doesn't check them specially, so the one relevant test case so far is XFAILed. Also rewrote all of the constraint-related data structures in the process (again), for some reason. I got rid of a superfluous data structure in the context that was mapping front-end constraints to resolved constraints, instead handling constraints in the same way in which everything else gets resolved.
2011-07-19Fix calculation of sizeof boxed ivec of str in rt. Closes #712Brian Anderson-1/+9
2011-07-19Disable run-pass/lib-run on win32. Issue #714Brian Anderson-0/+7
Trying to get the tinderbox green again. Will pursue later.
2011-07-19Some progress on issue #540.Lindsey Kuper-2/+0
2011-07-19Reduced test case for issue #540.Lindsey Kuper-0/+22
2011-07-19xfail simple-qsort.rs test at stage0.Erick Tryzelaar-0/+2
2011-07-19Fix an invalid memory access in run_program and friendsBrian Anderson-0/+15
2011-07-18Add str::replaceBrian Anderson-1/+25
2011-07-18Add str::is_empty, is_not_empty predsBrian Anderson-0/+12
2011-07-18Sane error message for self-call in non-obj context. Closes #707.Lindsey Kuper-0/+14
2011-07-18Fix qsort to not skip the right side when the pivot element gets put at index 0.Michael Sullivan-0/+23
Closes #705.
2011-07-18Reformulate x86stdcall test so it works with check-fastBrian Anderson-11/+10
Hopefully this puts out the burning win32 tinderbox
2011-07-18Fix native-type-mismatch test on win32Brian Anderson-1/+1
2011-07-18Add setenv to standard libraryBrian Anderson-0/+49
2011-07-18Support x86 stdcall conventionBrian Anderson-0/+21
This allows rust to call the Win32 API
2011-07-17Revert "Add setenv to standard library"Brian Anderson-49/+0
This reverts commit 6fb168b3dbd733f6fccebd01c2e5416f800a5566.
2011-07-17Add setenv to standard libraryBrian Anderson-0/+49
2011-07-16Removing error logging from testBrian Anderson-1/+0
2011-07-16Sort tests before running them. Issue #428Brian Anderson-0/+45
2011-07-16Add ivec::zip/unzipBrian Anderson-0/+18
2011-07-16Remove unused variable from test testsBrian Anderson-1/+1
2011-07-15Revised plan of attack for backwarding functions.Lindsey Kuper-9/+10
2011-07-15More tests for anonymous objects. Issues #702, #703.Lindsey Kuper-0/+118
2011-07-15Modify task::join to indicate how the task terminatedBrian Anderson-1/+20
This involves sticking yet another field into the task structure