about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2011-11-13Make various binops not typecheck for unsafe pointers. Closes #1173Brian Anderson-0/+4
2011-11-11Add test for #783. Closes #783Brian Anderson-0/+25
2011-11-11Rehabilitate run-fail/linked-failure4.rsBrian Anderson-10/+6
2011-11-11Rehabilitate run-pass/task-killjoin.rsBrian Anderson-9/+7
2011-11-11Rehabilitate run-pass/task-comm.rsBrian Anderson-9/+9
2011-11-11rt: Take the task lock when dropping port refcountsBrian Anderson-4/+3
Sucks, but otherwise there are races when one task drops the refcount to zero followed by another bumping it again
2011-11-11Fix run-fail/spawnfailBrian Anderson-4/+3
Catch the case where a parent is killed immediately before it terminates normally.
2011-11-11Give task-perf-word-count default behavior. Closes #1172Brian Anderson-18/+172
2011-11-10str: add escape()Elly Jones-0/+8
Signed-off-by: Elly Jones <elly@leptoquark.net>
2011-11-10Cleanup unused imports in testsHaitao Li-4/+0
2011-11-10rustc: Add support of warning on unused importsHaitao Li-0/+19
Fixes issue #889
2011-11-10stdlib: Remove sio and aio. Bitrotted.Brian Anderson-107/+0
2011-11-10Add float support to #fmt. Fix #1014.Josh Matthews-0/+14
2011-11-09Add "cdecl" as synonym for "c-stack-cdecl"Brian Anderson-26/+26
2011-11-09Add "stdcall" as synonym for "c-stack-stdcall"Brian Anderson-2/+2
2011-11-09Make native "c-stack-stdcall" ABI workBrian Anderson-2/+33
The symbol name is based on the number of arguments, so we have to declare it correctly. For some reason GetLastError doesn't work now.
2011-11-09Add test with implemented bits of issue #570.Joshua Wise-0/+17
2011-11-08Make task_sleep an intrinsic.Brian Anderson-2/+2
2011-11-08rt: Remove task_yield builtinBrian Anderson-2/+2
This is just a special case of task_sleep
2011-11-08Remove all uses of native cdecl except for those that yieldBrian Anderson-15/+22
2011-11-07json: betterify for brsonElly Jones-6/+55
Signed-off-by: Elly Jones <ellyjones@google.com>
2011-11-07Remove native "llvm" ABIBrian Anderson-10/+0
2011-11-07Add test for if without else cannot return resultBrian Anderson-0/+6
2011-11-07Add tests for blocks that must not have resultsBrian Anderson-0/+29
2011-11-06[Test] rope.rs: testing concatDavid Rajchenbach-Teller-0/+16
2011-11-05Fixup: forgotten stdtest/rope.rsDavid Rajchenbach-Teller-0/+148
2011-11-05stdlib: Added a small rope libraryDavid Rajchenbach-Teller-0/+1
2011-11-05uint.rs: added functions div_ceil, div_floor, div_roundDavid Rajchenbach-Teller-0/+7
2011-11-03Update some more tests for 1a68a9882Marijn Haverbeke-43/+1
2011-11-03Disallow writing to function arguments againMarijn Haverbeke-6/+8
Remove implicit copying hack. Closes #1118
2011-11-02Add vec::permute to the standard library (#1013)Matt Brubeck-0/+21
2011-11-02Rename car/cdr to head/tail in std::listMarijn Haverbeke-10/+10
Closes #1086
2011-11-02Make ptr::addr_of return an immutable vec, add mut_addr_ofMarijn Haverbeke-3/+3
2011-11-01Ignore another test involving failure on windowsBrian Anderson-0/+1
2011-11-01Ignore should_fail tests on windowsBrian Anderson-0/+10
2011-11-01Add should_fail annotation for unit testsMatt Brubeck-5/+82
This allows test cases to assert that a function is expected to fail. Tests annotated with "should_fail" will succeed only if the function fails.
2011-11-01Fix alignment of interior pointers of dynamic-size types. Closes #1112Brian Anderson-0/+37
GEP_tup_like finds interior pointers by creating a tuple of all the types preceding the element it wants a pointer to, then asks for the size of that tuple. This results in incorrect pointers when the alignment of that tuple is not the alignment of the interior type you're getting a pointer to.
2011-10-31Fix the filenames used in some IO testsBrian Anderson-4/+4
These tests are relying on not being able to open certain files, but did not work correctly when run as root.
2011-10-31Add a char::to_digit functionMatt Brubeck-0/+29
2011-10-31Correct handling of non-numeric chars in parse_bufMatt Brubeck-1/+43
Without this fix, int::parse_buf and uint::parse_buf return incorrect results for any strings that contain non-numeric characters. Fixes #1102.
2011-10-31Rename std::str::chars to iter_charsMarijn Haverbeke-2/+2
2011-10-31Add a way to iterate over a str's chars to std::strMarijn Haverbeke-0/+13
2011-10-30Fix int::parse_buf for negative numbers (#1102)Matt Brubeck-1/+16
2011-10-30Make float::from_str ignore whitespace (#1089)Matt Brubeck-1/+22
Discard leading and trailing whitespace, for consistency with C/JS/Java/etc. Also, don't allow floating point numbers that start or end with 'e'.
2011-10-29Cleanup the existing platform-specific ignored testsBrian Anderson-55/+11
2011-10-29Add the ability to ignore tests by compiler configBrian Anderson-0/+31
[test] [ignore(cfg(target_os = "win32"))]
2011-10-29stdlib: Add vec::concat to concatenate a vector of vectorsBrian Anderson-0/+5
Compare to str::concat
2011-10-29rustc: Support 'companion mod's for crates and directory modsBrian Anderson-0/+23
Under this scheme when parsing foo.rc the parser will also look for foo.rs to fill in the crate-level module, and when evaluating a directory module directive it will look for a .rs file with the same name as the directory.
2011-10-29stdlib: Make io failures recoverable by returning a resultBrian Anderson-3/+53
2011-10-29stdlib: Add result::chain for composing resultsBrian Anderson-0/+18