compiletest: Test --pretty expanded
After testing `--pretty normal`, it tries to run `--pretty expanded` and typecheck output. Here we don't check convergence since it really diverges: for every iteration, some extra lines (e.g.`extern crate std`) are inserted. Some tests are `ignore-pretty`-ed since they cause various issues with `--pretty expanded`.
This commit is contained in:
parent
96eeda9708
commit
ce8c467bd2
10 changed files with 31 additions and 6 deletions
|
|
@ -11,6 +11,7 @@
|
|||
// error-pattern:runned an unexported test
|
||||
// compile-flags:--test
|
||||
// check-stdout
|
||||
// ignore-pretty: does not work well with `--test`
|
||||
|
||||
mod m {
|
||||
pub fn exported() { }
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
// check-stdout
|
||||
// error-pattern:task 'test_foo' failed at
|
||||
// compile-flags: --test
|
||||
// ignore-pretty: does not work well with `--test`
|
||||
|
||||
#[test]
|
||||
fn test_foo() {
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
// error-pattern:should be a positive integer
|
||||
// compile-flags: --test
|
||||
// exec-env:RUST_TEST_TASKS=foo
|
||||
// ignore-pretty: does not work well with `--test`
|
||||
|
||||
#[test]
|
||||
fn do_nothing() {}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@
|
|||
// except according to those terms.
|
||||
|
||||
// ignore-android
|
||||
// ignore-pretty: does not work well with `--test`
|
||||
|
||||
#![feature(quote)]
|
||||
#![deny(unused_variable)]
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// ignore-pretty: pprust doesn't print hygiene output
|
||||
|
||||
#![feature(macro_rules)]
|
||||
|
||||
macro_rules! loop_x {
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// ignore-pretty: `--pretty expand` creates unnecessary `unsafe` block
|
||||
|
||||
#![feature(macro_rules, managed_boxes)]
|
||||
#![deny(warnings)]
|
||||
|
|
|
|||
|
|
@ -9,6 +9,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// pp-exact
|
||||
// ignore-pretty: `expand` addes some preludes before shebang
|
||||
|
||||
pub fn main() { println!("Hello World"); }
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
// compile-flags: --test --cfg ignorecfg
|
||||
// ignore-pretty: does not work well with `--test`
|
||||
|
||||
#[test]
|
||||
#[ignore(cfg(ignorecfg))]
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
// compile-flags:--test
|
||||
// ignore-win32 #10872
|
||||
// ignore-pretty: does not work well with `--test`
|
||||
|
||||
// Building as a test runner means that a synthetic main will be run,
|
||||
// not ours
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue