Skip to content

Commit 22b571d

Browse files
committed
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.
1 parent a7bea73 commit 22b571d

File tree

6 files changed

+6
-3
lines changed

6 files changed

+6
-3
lines changed

Diff for: src/test/run-pass/optimization-fuel-0.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212

1313
use std::mem::size_of;
1414

15-
// compile-flags: -Z fuel=foo=0
15+
// (#55495: The --error-format is to sidestep an issue in our test harness)
16+
// compile-flags: --error-format human -Z fuel=foo=0
1617

1718
struct S1(u8, u16, u8);
1819
struct S2(u8, u16, u8);

Diff for: src/test/run-pass/optimization-fuel-1.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212

1313
use std::mem::size_of;
1414

15-
// compile-flags: -Z fuel=foo=1
15+
// (#55495: The --error-format is to sidestep an issue in our test harness)
16+
// compile-flags: --error-format human -Z fuel=foo=1
1617

1718
struct S1(u8, u16, u8);
1819
struct S2(u8, u16, u8);

Diff for: src/test/ui/print-fuel/print-fuel.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
#![crate_name="foo"]
1212
#![allow(dead_code)]
1313

14-
// compile-flags: -Z print-fuel=foo
14+
// (#55495: The --error-format is to sidestep an issue in our test harness)
15+
// compile-flags: --error-format human -Z print-fuel=foo
1516
// compile-pass
1617

1718
struct S1(u8, u16, u8);
File renamed without changes.

0 commit comments

Comments
 (0)