Add explcit --error-format options to tests of print-fuel to sidestep compiletests presumption of JSON.

As a driveby, rename the stdout files to stderr, which should have been part of the earlier commit.
This commit is contained in:
Felix S. Klock II 2018-11-06 17:07:17 +01:00
parent a7bea73292
commit 22b571d62a
6 changed files with 6 additions and 3 deletions

View file

@ -12,7 +12,8 @@
use std::mem::size_of;
// compile-flags: -Z fuel=foo=0
// (#55495: The --error-format is to sidestep an issue in our test harness)
// compile-flags: --error-format human -Z fuel=foo=0
struct S1(u8, u16, u8);
struct S2(u8, u16, u8);

View file

@ -12,7 +12,8 @@
use std::mem::size_of;
// compile-flags: -Z fuel=foo=1
// (#55495: The --error-format is to sidestep an issue in our test harness)
// compile-flags: --error-format human -Z fuel=foo=1
struct S1(u8, u16, u8);
struct S2(u8, u16, u8);

View file

@ -11,7 +11,8 @@
#![crate_name="foo"]
#![allow(dead_code)]
// compile-flags: -Z print-fuel=foo
// (#55495: The --error-format is to sidestep an issue in our test harness)
// compile-flags: --error-format human -Z print-fuel=foo
// compile-pass
struct S1(u8, u16, u8);