Skip to content

Commit

Permalink
update tests for the test harness's json formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pietroalbini committed Apr 21, 2023
1 parent 4edba55 commit eb00459
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/ui/feature-gates/test-listing-format-json.rs
Original file line number Diff line number Diff line change
@@ -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() {}
1 change: 1 addition & 0 deletions tests/ui/feature-gates/test-listing-format-json.run.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
error: the option `Z` is only accepted on the nightly compiler
1 change: 1 addition & 0 deletions tests/ui/test-attrs/tests-listing-format-json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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/"

Expand Down

0 comments on commit eb00459

Please sign in to comment.