about summary refs log tree commit diff
path: root/src/test/run-pass/logging-separate-lines.rs
AgeCommit message (Collapse)AuthorLines
2016-03-07mk: Distribute fewer TARGET_CRATESAlex Crichton-39/+0
Right now everything in TARGET_CRATES is built by default for all non-fulldeps tests and is distributed by default for all target standard library packages. Currenly this includes a number of unstable crates which are rarely used such as `graphviz` and `rbml`> This commit trims down the set of `TARGET_CRATES`, moves a number of tests to `*-fulldeps` as a result, and trims down the dependencies of libtest so we can distribute fewer crates in the `rust-std` packages.
2015-04-21Remove references to `old_{path,io}`Tamir Duberstein-1/+1
2015-04-14test: Fix fallout in run-pass testsAlex Crichton-3/+3
2015-03-23Require feature attributes, and add them where necessaryBrian Anderson-0/+2
2015-03-05rustc: Add a debug_assertions #[cfg] directiveAlex Crichton-0/+1
This commit is an implementation of [RFC 563][rfc] which adds a new `cfg(debug_assertions)` directive which is specially recognized and calculated by the compiler. The flag is turned off at any optimization level greater than 1 and may also be explicitly controlled through the `-C debug-assertions` flag. [rfc]: https://github.com/rust-lang/rfcs/pull/563 The `debug_assert!` and `debug_assert_eq!` macros now respect this instead of the `ndebug` variable and `ndebug` no longer holds any meaning to the standard library. Code which was previously relying on `not(ndebug)` to gate expensive code should be updated to rely on `debug_assertions` instead. Closes #22492 [breaking-change]
2015-02-18 Manual merge of #22475 - alexcrichton:rollup, r=alexcrichtonHuon Wilson-3/+2
One windows bot failed spuriously.
2015-02-16Replace some uses of deprecated os functionsSimonas Kazlauskas-3/+2
This commit mostly replaces some of the uses of os::args with env::args.
2015-02-10Enable some tests for androidwonyong kim-1/+0
2015-02-05cleanup: replace `as[_mut]_slice()` calls with deref coercionsJorge Aparicio-4/+4
2015-01-26Fallout of io => old_ioAlex Crichton-1/+1
2015-01-05Replace #[phase] with #[plugin] / #[macro_use] / #[no_link]Keegan McAllister-3/+1
2014-08-12Replace "ignore-win32" in tests with "ignore-windows"Vadim Chugunov-1/+1
2014-06-16Fix --disable-rpath and testsAlex Crichton-2/+2
This involved a few changes to the local build system: * Makefiles now prefer our own LD_LIBRARY_PATH over the user's LD_LIBRARY_PATH in order to support building rust with rust already installed. * The compiletest program was taught to correctly pass through the aux dir as a component of LD_LIBRARY_PATH in more situations. This change was spliced out of #14832 to consist of just the fixes to running tests without an rpath setting embedded in executables.
2014-06-09Use phase(plugin) in testsKeegan McAllister-1/+1
2014-05-27std: Remove String's to_ownedRicho Healey-1/+1
2014-05-14Process::new etc should support non-utf8 commands/argsAaron Turon-9/+4
The existing APIs for spawning processes took strings for the command and arguments, but the underlying system may not impose utf8 encoding, so this is overly limiting. The assumption we actually want to make is just that the command and arguments are viewable as [u8] slices with no interior NULLs, i.e., as CStrings. The ToCStr trait is a handy bound for types that meet this requirement (such as &str and Path). However, since the commands and arguments are often a mixture of strings and paths, it would be inconvenient to take a slice with a single T: ToCStr bound. So this patch revamps the process creation API to instead use a builder-style interface, called `Command`, allowing arguments to be added one at a time with differing ToCStr implementations for each. The initial cut of the builder API has some drawbacks that can be addressed once issue #13851 (libstd as a facade) is closed. These are detailed as FIXMEs. Closes #11650. [breaking-change]
2014-05-13io: Implement process wait timeoutsAlex Crichton-1/+1
This implements set_timeout() for std::io::Process which will affect wait() operations on the process. This follows the same pattern as the rest of the timeouts emerging in std::io::net. The implementation was super easy for everything except libnative on unix (backwards from usual!), which required a good bit of signal handling. There's a doc comment explaining the strategy in libnative. Internally, this also required refactoring the "helper thread" implementation used by libnative to allow for an extra helper thread (not just the timer). This is a breaking change in terms of the io::Process API. It is now possible for wait() to fail, and subsequently wait_with_output(). These two functions now return IoResult<T> due to the fact that they can time out. Additionally, the wait_with_output() function has moved from taking `&mut self` to taking `self`. If a timeout occurs while waiting with output, the semantics are undesirable in almost all cases if attempting to re-wait on the process. Equivalent functionality can still be achieved by dealing with the output handles manually. [breaking-change] cc #13523
2014-05-08Handle more falloutKevin Ballard-0/+1
os::args() no longer auto-borrows to &[~str].
2014-05-06log: Use writeln!() instead of write!()Alex Crichton-0/+44
This was accidentally left out of the recent logging improvements.