Skip to content

Commit

Permalink
Add explcit --error-format options to tests of print-fuel to sidest…
Browse files Browse the repository at this point in the history
…ep compiletests presumption of JSON.

As a driveby, rename the stdout files to stderr, which should have been part of the earlier commit.
  • Loading branch information
pnkfelix committed Nov 6, 2018
1 parent a7bea73 commit 22b571d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/test/run-pass/optimization-fuel-0.rs
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion src/test/run-pass/optimization-fuel-1.rs
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion src/test/ui/print-fuel/print-fuel.rs
Expand Up @@ -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);
Expand Down
File renamed without changes.

0 comments on commit 22b571d

Please sign in to comment.