summary refs log tree commit diff
path: root/src/test/run-fail
AgeCommit message (Collapse)AuthorLines
2014-01-05Don't abort the process in native::startAlex Crichton-0/+22
If the main closure failed, then the `exit_code` variable would still be `None`, and the `unwrap()` was failing (triggering a process abort). This changes the `unwrap()` to an `unwrap_or()` in order to prevent process abort and detect when the native task failed.
2014-01-03test: De-`@mut` the test suitePatrick Walton-1/+1
2014-01-03test: Remove all borrow check write guard testsPatrick Walton-252/+0
2013-12-19std::vec: remove .as_imm_buf, replaced by .as_ptr & .len.Huon Wilson-11/+10
There's no need for the restrictions of a closure with the above methods.
2013-12-12Gate literal box expressions in addition to typesAlex Crichton-0/+49
Closes #10920
2013-12-11Make 'self lifetime illegal.Erik Price-4/+4
Also remove all instances of 'self within the codebase. This fixes #10889.
2013-12-06Made Results API more composableMarvin Löbel-1/+1
2013-11-26librustc: Make `||` lambdas not infer to `proc`sPatrick Walton-1/+1
2013-11-26test: Remove non-procedure uses of `do` from compiletest, libstd tests,Patrick Walton-2/+2
compile-fail tests, run-fail tests, and run-pass tests.
2013-11-26librustc: Remove remaining uses of `&fn()` in favor of `||`.Patrick Walton-1/+1
2013-11-26test: Remove most uses of `&fn()` from the tests.Patrick Walton-4/+4
2013-11-24Remove linked failure from the runtimeAlex Crichton-10/+17
The reasons for doing this are: * The model on which linked failure is based is inherently complex * The implementation is also very complex, and there are few remaining who fully understand the implementation * There are existing race conditions in the core context switching function of the scheduler, and possibly others. * It's unclear whether this model of linked failure maps well to a 1:1 threading model Linked failure is often a desired aspect of tasks, but we would like to take a much more conservative approach in re-implementing linked failure if at all. Closes #8674 Closes #8318 Closes #8863
2013-11-18librustc: Convert `~fn()` to `proc()` everywhere.Patrick Walton-1/+1
2013-11-01auto merge of #10204 : alexcrichton/rust/better-names, r=brsonbors-0/+33
Tests now have the same name as the test that they're running (to allow for easier diagnosing of failure sources), and the main task is now specially named `<main>` instead of `<unnamed>`. Closes #10195 Closes #10073
2013-11-01Give test and main tasks better namesAlex Crichton-0/+33
Tests now have the same name as the test that they're running (to allow for easier diagnosing of failure sources), and the main task is now specially named <main> instead of <unnamed>. Closes #10195 Closes #10073
2013-11-01Reordered the methods in std::Option and std::ResultMarvin Löbel-2/+2
Cleaned up the source in a few places Renamed `map_move` to `map`, removed other `map` methods Added `as_ref` and `as_mut` adapters to `Result` Added `fmt::Default` impl
2013-10-30Prepared `std::sys` for removal, and made `begin_unwind` simplerMarvin Löbel-15/+0
- `begin_unwind` is now generic over any `T: Any + Send`. - Every value you fail with gets boxed as an `~Any`. - Because of implementation details, `&'static str` and `~str` are still handled specially behind the scenes. - Changed the big macro source string in libsyntax to a raw string literal, and enabled doc comments there.
2013-10-28Allow fail messages to be caught, and introduce the Any traitMarvin Löbel-0/+45
Some code cleanup, sorting of import blocks Removed std::unstable::UnsafeArc's use of Either Added run-fail tests for the new FailWithCause impls Changed future_result and try to return Result<(), ~Any>. - Internally, there is an enum of possible fail messages passend around. - In case of linked failure or a string message, the ~Any gets lazyly allocated in future_results recv method. - For that, future result now returns a wrapper around a Port. - Moved and renamed task::TaskResult into rt::task::UnwindResult and made it an internal enum. - Introduced a replacement typedef `type TaskResult = Result<(), ~Any>`.
2013-10-26auto merge of #10072 : brson/rust/modelines, r=thestingerbors-6/+0
These are relics that serve no purpose.
2013-10-25Remove ancient emacs mode lines from test casesBrian Anderson-6/+0
These are relics that serve no purpose.
2013-10-25auto merge of #10067 : sanxiyn/rust/addr-of-bot, r=thestingerbors-0/+15
Fix #5500.
2013-10-25Allow taking address of bottomSeo Sanghyeon-0/+15
2013-10-24Remove even more of std::ioAlex Crichton-24/+0
Big fish fried here: extra::json most of the compiler extra::io_util removed extra::fileinput removed Fish left to fry extra::ebml
2013-10-23register snapshotsDaniel Micay-0/+34
2013-10-22Drop the '2' suffix from logging macrosAlex Crichton-116/+116
Who doesn't like a massive renaming?
2013-10-20testsuite: test for fixed issue. Closes #7580.Huon Wilson-0/+22
Fixed by the privacy changes that allowed the `mod std {}` at the top level of `std` to be non-`pub`.
2013-10-17std: Move size/align functions to std::mem. #2240Brian Anderson-5/+5
2013-10-15fix overflow on bounds checksDaniel Micay-0/+19
Closes #9020
2013-10-15fix bounds checking failure messageDaniel Micay-40/+0
casting the `uint` to an `int` can result in printing high values as negative intege
2013-10-05Implemented `IntoSendStr` on `SendStr` to allow naming aMarvin Löbel-0/+19
task with a `SendStr` directly
2013-10-05Make a task name use a `SendStr`, allowing for eitherMarvin Löbel-0/+55
static or owned strings
2013-10-01remove the `float` typeDaniel Micay-4/+4
It is simply defined as `f64` across every platform right now. A use case hasn't been presented for a `float` type defined as the highest precision floating point type implemented in hardware on the platform. Performance-wise, using the smallest precision correct for the use case greatly saves on cache space and allows for fitting more numbers into SSE/AVX registers. If there was a use case, this could be implemented as simply a type alias or a struct thanks to `#[cfg(...)]`. Closes #6592 The mailing list thread, for reference: https://mail.mozilla.org/pipermail/rust-dev/2013-July/004632.html
2013-09-30rfail: Remove usage of fmt!Alex Crichton-114/+114
2013-09-27auto merge of #9550 : alexcrichton/rust/remove-printf, r=thestingerbors-4/+4
The 0.8 release was cut, down with printf!
2013-09-26Update the compiler to not use printf/printflnAlex Crichton-4/+4
2013-09-25Refactor the logging system for fewer allocationsAlex Crichton-74/+0
This lifts various restrictions on the runtime, for example the character limit when logging a message. Right now the old debug!-style macros still involve allocating (because they use fmt! syntax), but the new debug2! macros don't involve allocating at all (unless the formatter for a type requires allocation.
2013-09-23test: Fix rustdoc and tests.Patrick Walton-46/+1
2013-09-16switch Drop to `&mut self`Daniel Micay-10/+10
2013-09-13make ! support the equality/ordering operatorsDaniel Micay-0/+13
An expression such as `bottom == not_bottom` or `not_bottom == bottom` already compiled, but this fixes the case where both sides are `bottom`.
2013-08-29extra: error message should reflact that RUST_TEST_TASKS should be strictly ↵Huon Wilson-1/+1
positive (zero is illegal).
2013-08-29Make the unit-test framework check RUST_TEST_TASKS over RUST_THREADS.Huon Wilson-0/+19
Fixes #7335.
2013-08-22Enabled tests.Vadim Chugunov-1/+0
2013-08-18auto merge of #8560 : kballard/rust/reserve-yield, r=pcwaltonbors-3/+3
Rename task::yield() to task::deschedule(). Fixes #8494.
2013-08-17Fix warnings it testsErick Tryzelaar-43/+73
2013-08-16Reserve 'yield' keywordKevin Ballard-3/+3
Rename task::yield() to task::deschedule(). Fixes #8494.
2013-08-15rm obsolete testDaniel Micay-44/+0
2013-08-13auto merge of #8497 : nikomatsakis/rust/improvements-to-object-coercion, ↵bors-0/+22
r=pcwalton While looking over the code for object coercion, I realized that it wasn't quite handling freezing and reborrowing correctly. Tweak the code, adding tests for the relevant cases. r? @pcwalton
2013-08-13Merge pull request #8432 from chris-morgan/remove-assert-eq-macro-fail-binaryGraydon Hoare-0/+0
Remove in-tree test binary.
2013-08-13Fix freezing of @mut Objects when passing as argumentNiko Matsakis-0/+22
2013-08-11tests: Add new tests for borrowck/objects and update some existing testsNiko Matsakis-0/+21