about summary refs log tree commit diff
path: root/src/compiletest/header.rs
AgeCommit message (Collapse)AuthorLines
2015-01-21Fallout from stabilization.Aaron Turon-2/+1
2015-01-09Revert "Ignore extra error from test for now"Manish Goregaokar-13/+0
This reverts commit 6342aa62efd1b3aa7e1bc8f834f317290b11c519.
2015-01-08Ignore extra error from test for nowManish Goregaokar-0/+13
2015-01-05compiletest: remove boxed closuresJorge Aparicio-1/+3
2014-12-21Fallout of std::str stabilizationAlex Crichton-3/+3
2014-11-16Move FromStr to core::strBrendan Zabarauskas-5/+3
2014-10-29Rename fail! to panic!Steve Klabnik-2/+2
https://github.com/rust-lang/rfcs/pull/221 The current terminology of "task failure" often causes problems when writing or speaking about code. You often want to talk about the possibility of an operation that returns a Result "failing", but cannot because of the ambiguity with task failure. Instead, you have to speak of "the failing case" or "when the operation does not succeed" or other circumlocutions. Likewise, we use a "Failure" header in rustdoc to describe when operations may fail the task, but it would often be helpful to separate out a section describing the "Err-producing" case. We have been steadily moving away from task failure and toward Result as an error-handling mechanism, so we should optimize our terminology accordingly: Result-producing functions should be easy to describe. To update your code, rename any call to `fail!` to `panic!` instead. Assuming you have not created your own macro named `panic!`, this will work on UNIX based systems: grep -lZR 'fail!' . | xargs -0 -l sed -i -e 's/fail!/panic!/g' You can of course also do this by hand. [breaking-change]
2014-10-08debuginfo: Add LLDB version handling to test infrastructure.Michael Woerister-1/+38
2014-09-17Add a forbid-output property in cfail testsKeegan McAllister-1/+14
2014-08-27debuginfo: Emit different autotest debugger scripts depending on GDB version.Michael Woerister-15/+54
2014-08-13core: Change the argument order on splitn and rsplitn for strs.Brian Anderson-1/+1
This makes it consistent with the same functions for slices, and allows the search closure to be specified last. [breaking-change]
2014-07-29Add pretty=typed test support to compiletest and add a test for fixed size ↵Luqman Aden-0/+24
arrays.
2014-06-25compiletest: Remove superfluous to_string callsPiotr Jawniak-8/+8
2014-05-28std: Remove format_strbuf!()Alex Crichton-4/+4
This was only ever a transitionary macro.
2014-05-27std: Rename strbuf operations to stringRicho Healey-10/+10
[breaking-change]
2014-05-24core: rename strbuf::StrBuf to string::StringRicho Healey-17/+17
[breaking-change]
2014-05-22libstd: Remove `~str` from all `libstd` modules except `fmt` and `str`.Patrick Walton-2/+7
2014-05-16compiletest: Remove all uses of `~str` from `compiletest`Patrick Walton-39/+50
2014-05-13Touch up and rebase previous commitsAlex Crichton-0/+12
* Added `// no-pretty-expanded` to pretty-print a test, but not run it through the `expanded` variant. * Removed #[deriving] and other expanded attributes after they are expanded * Removed hacks around &str and &&str and friends (from both the parser and the pretty printer). * Un-ignored a bunch of tests
2014-05-13compiletest: Modernize typenamesklutzy-5/+5
2014-05-07debuginfo: Split debuginfo autotests into debuginfo-gdb and debuginfo-lldbMichael Woerister-14/+1
2014-05-01remove leftover obsolete string literalsDaniel Micay-1/+1
2014-04-21auto merge of #13553 : aochagavia/rust/pr, r=alexcrichtonbors-2/+15
Now it is possible to specify run-flags in tests. For example, by using `run-flags: --bench` the Bencher is run.
2014-04-20Added run_flags directive to `compiletest`Adolfo Ochagavía-2/+15
Now it is possible to specify run-flags in tests. For example, by using `run-flags: --bench` the Bencher is run.
2014-04-18Replace all ~"" with "".to_owned()Richo Healey-10/+10
2014-03-31compiletest: Switch field privacy where necessaryAlex Crichton-10/+10
2014-03-22Remove outdated and unnecessary std::vec_ng::Vec imports.Huon Wilson-2/+0
(And fix some tests.)
2014-03-21test: Make manual changes to deal with the fallout from removal ofPatrick Walton-11/+13
`~[T]` in test, libgetopts, compiletest, librustdoc, and libnum.
2014-03-12Update io iterators to produce IoResultsPalmer Cox-0/+1
Most IO related functions return an IoResult so that the caller can handle failure in whatever way is appropriate. However, the `lines`, `bytes`, and `chars` iterators all supress errors. This means that code that needs to handle errors can't use any of these iterators. All three of these iterators were updated to produce IoResults. Fixes #12368
2014-02-19Tweak how preference factors into linkageAlex Crichton-0/+12
The new methodology can be found in the re-worded comment, but the gist of it is that -C prefer-dynamic doesn't turn off static linkage. The error messages should also be a little more sane now. Closes #12133
2014-02-14extra: Capture stdout/stderr of tests by defaultAlex Crichton-0/+12
When tests fail, their stdout and stderr is printed as part of the summary, but this helps suppress failure messages from #[should_fail] tests and generally clean up the output of the test runner.
2014-02-11Add ignore-cross-compile directive for compiletestAlex Crichton-0/+2
Loadable syntax extensions don't work when cross compiling (see #12102), so the fourcc tests all need to be ignored. They're valuable tests, so they shouldn't be outright ignored, so they're now flagged with ignore-cross-compile
2014-02-11Change `xfail` directives in compiletests to `ignore`, closes #11363Florian Hahn-8/+8
2014-01-21[std::vec] Rename .pop_opt() to .pop(), drop the old .pop() behaviorSimon Sapin-3/+3
2014-01-17auto merge of #11618 : alexcrichton/rust/force-host, r=brsonbors-1/+13
The new macro loading infrastructure needs the ability to force a procedural-macro crate to be built with the host architecture rather than the target architecture (because the compiler is just about to dlopen it).
2014-01-17auto merge of #11598 : alexcrichton/rust/io-export, r=brsonbors-2/+1
* Reexport io::mem and io::buffered structs directly under io, make mem/buffered private modules * Remove with_mem_writer * Remove DEFAULT_CAPACITY and use DEFAULT_BUF_SIZE (in io::buffered) cc #11119
2014-01-17test: Add the ability to force a host targetAlex Crichton-1/+13
The new macro loading infrastructure needs the ability to force a procedural-macro crate to be built with the host architecture rather than the target architecture (because the compiler is just about to dlopen it).
2014-01-17Tweak the interface of std::ioAlex Crichton-2/+1
* Reexport io::mem and io::buffered structs directly under io, make mem/buffered private modules * Remove with_mem_writer * Remove DEFAULT_CAPACITY and use DEFAULT_BUF_SIZE (in io::buffered)
2014-01-16Load macros from external modulesSteven Fackler-0/+4
2014-01-04etc: licenseck: don't hardcode a specific yearAdrien Tétar-2/+2
2013-12-11std::io: Add Buffer.lines(), change .bytes() apiklutzy-5/+1
- `Buffer.lines()` returns `LineIterator` which yields line using `.read_line()`. - `Reader.bytes()` now takes `&mut self` instead of `self`. - `Reader.read_until()` swallows `EndOfFile`. This also affects `.read_line()`.
2013-12-04Revert "libstd: Change `Path::new` to `Path::init`."Kevin Ballard-2/+2
This reverts commit c54427ddfbbab41a39d14f2b1dc4f080cbc2d41b. Leave the #[ignores] in that were added to rustpkg tests. Conflicts: src/librustc/driver/driver.rs src/librustc/metadata/creader.rs
2013-11-29libstd: Change `Path::new` to `Path::init`.Patrick Walton-2/+2
2013-11-26test: Remove non-procedure uses of `do` from compiletest, libstd tests,Patrick Walton-6/+6
compile-fail tests, run-fail tests, and run-pass tests.
2013-11-26libsyntax: Remove the old-style borrowed closure type syntax from thePatrick Walton-1/+1
language.
2013-11-26Removed unneccessary `_iter` suffixes from various APIsMarvin Löbel-1/+1
2013-11-11Move std::rt::io to std::ioAlex Crichton-2/+2
2013-11-03Fill out the remaining functionality in io::fileAlex Crichton-2/+2
This adds bindings to the remaining functions provided by libuv, all of which are useful operations on files which need to get exposed somehow. Some highlights: * Dropped `FileReader` and `FileWriter` and `FileStream` for one `File` type * Moved all file-related methods to be static methods under `File` * All directory related methods are still top-level functions * Created `io::FilePermission` types (backed by u32) that are what you'd expect * Created `io::FileType` and refactored `FileStat` to use FileType and FilePermission * Removed the expanding matrix of `FileMode` operations. The mode of reading a file will not have the O_CREAT flag, but a write mode will always have the O_CREAT flag. Closes #10130 Closes #10131 Closes #10121
2013-11-03Remove all blocking std::os blocking functionsAlex Crichton-3/+2
This commit moves all thread-blocking I/O functions from the std::os module. Their replacements can be found in either std::rt::io::file or in a hidden "old_os" module inside of native::file. I didn't want to outright delete these functions because they have a lot of special casing learned over time for each OS/platform, and I imagine that these will someday get integrated into a blocking implementation of IoFactory. For now, they're moved to a private module to prevent bitrot and still have tests to ensure that they work. I've also expanded the extensions to a few more methods defined on Path, most of which were previously defined in std::os but now have non-thread-blocking implementations as part of using the current IoFactory. The api of io::file is in flux, but I plan on changing it in the next commit as well. Closes #10057
2013-10-22Drop the '2' suffix from logging macrosAlex Crichton-2/+2
Who doesn't like a massive renaming?