normalize test output so it can be run from repo root

This commit is contained in:
QuietMisdreavus 2018-07-16 16:25:34 -05:00
parent ffbd2b931e
commit d965371d86
2 changed files with 14 additions and 10 deletions

View file

@ -9,15 +9,19 @@
// except according to those terms.
// Issue #51162: A failed doctest was not printing its stdout/stderr
// FIXME: if/when the output of the test harness can be tested on its own, this test should be
// adapted to use that, and that normalize line can go away
// compile-flags:--test
// disable-ui-testing-normalization
// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR"
// doctest fails at runtime
/// ```
/// panic!("oh no");
/// ```
pub struct SomeStruct;
// doctest fails at compile time
/// ```
/// no
/// ```