Skip to content

Commit 988610a

Browse files
committed
update tests for the test harness's json formatting
1 parent 86dfb0d commit 988610a

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// no-prefer-dynamic
2+
// compile-flags: --test
3+
// run-flags: --list --format json -Zunstable-options
4+
// run-fail
5+
// check-run-results
6+
// ignore-nightly
7+
// unset-exec-env:RUSTC_BOOTSTRAP
8+
9+
#![cfg(test)]
10+
#[test]
11+
fn m_test() {}
12+
13+
#[test]
14+
#[ignore = "not yet implemented"]
15+
fn z_test() {}
16+
17+
#[test]
18+
fn a_test() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
error: the option `Z` is only accepted on the nightly compiler

tests/ui/test-attrs/tests-listing-format-json.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// run-flags: --list --format json -Zunstable-options
44
// run-pass
55
// check-run-results
6+
// only-nightly
67
// normalize-stdout-test: "fake-test-src-base/test-attrs/" -> "$$DIR/"
78
// normalize-stdout-test: "fake-test-src-base\\test-attrs\\" -> "$$DIR/"
89

0 commit comments

Comments
 (0)