update tests for the test harness's json formatting

This commit is contained in:
Pietro Albini 2023-04-17 11:00:50 +02:00 committed by Pietro Albini
parent 4edba553c3
commit eb00459737
No known key found for this signature in database
GPG Key ID: 3E06ABE80BAAF19C
3 changed files with 20 additions and 0 deletions

View File

@ -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() {}

View File

@ -0,0 +1 @@
error: the option `Z` is only accepted on the nightly compiler

View File

@ -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/"