diff options
| author | Pietro Albini <pietro.albini@ferrous-systems.com> | 2023-04-17 11:00:50 +0200 |
|---|---|---|
| committer | Pietro Albini <pietro@pietroalbini.org> | 2023-04-21 15:34:38 +0200 |
| commit | eb0045973710aa9444bc1e6b3634c2ccc0b99c12 (patch) | |
| tree | 48a933d4b7f03068d7c74f4027b5e4f9e9a6d3d6 | |
| parent | 4edba553c3999ae8b6204484be5e1460be30d741 (diff) | |
| download | rust-eb0045973710aa9444bc1e6b3634c2ccc0b99c12.tar.gz rust-eb0045973710aa9444bc1e6b3634c2ccc0b99c12.zip | |
update tests for the test harness's json formatting
| -rw-r--r-- | tests/ui/feature-gates/test-listing-format-json.rs | 18 | ||||
| -rw-r--r-- | tests/ui/feature-gates/test-listing-format-json.run.stderr | 1 | ||||
| -rw-r--r-- | tests/ui/test-attrs/tests-listing-format-json.rs | 1 |
3 files changed, 20 insertions, 0 deletions
diff --git a/tests/ui/feature-gates/test-listing-format-json.rs b/tests/ui/feature-gates/test-listing-format-json.rs new file mode 100644 index 00000000000..2dd0e10b521 --- /dev/null +++ b/tests/ui/feature-gates/test-listing-format-json.rs @@ -0,0 +1,18 @@ +// no-prefer-dynamic +// compile-flags: --test +// run-flags: --list --format json -Zunstable-options +// run-fail +// check-run-results +// ignore-nightly +// unset-exec-env:RUSTC_BOOTSTRAP + +#![cfg(test)] +#[test] +fn m_test() {} + +#[test] +#[ignore = "not yet implemented"] +fn z_test() {} + +#[test] +fn a_test() {} diff --git a/tests/ui/feature-gates/test-listing-format-json.run.stderr b/tests/ui/feature-gates/test-listing-format-json.run.stderr new file mode 100644 index 00000000000..e81cb81f32c --- /dev/null +++ b/tests/ui/feature-gates/test-listing-format-json.run.stderr @@ -0,0 +1 @@ +error: the option `Z` is only accepted on the nightly compiler diff --git a/tests/ui/test-attrs/tests-listing-format-json.rs b/tests/ui/test-attrs/tests-listing-format-json.rs index 18f1521eeeb..5afc2746fe4 100644 --- a/tests/ui/test-attrs/tests-listing-format-json.rs +++ b/tests/ui/test-attrs/tests-listing-format-json.rs @@ -3,6 +3,7 @@ // run-flags: --list --format json -Zunstable-options // run-pass // check-run-results +// only-nightly // normalize-stdout-test: "fake-test-src-base/test-attrs/" -> "$$DIR/" // normalize-stdout-test: "fake-test-src-base\\test-attrs\\" -> "$$DIR/" |
