diff --git a/tests-build/README.md b/tests-build/README.md index f491e2bc3..b6b54d23e 100644 --- a/tests-build/README.md +++ b/tests-build/README.md @@ -1,2 +1,10 @@ Tests the various combination of feature flags. This is broken out to a separate crate to work around limitations with cargo features. + +To run all of the tests in this directory, run the following commands: +``` +cargo test --features full +cargo test --features rt +``` +If one of the tests fail, you can pass `TRYBUILD=overwrite` to the `cargo test` +command that failed to have it regenerate the test output. diff --git a/tests-build/tests/fail/macros_core_no_default.stderr b/tests-build/tests/fail/macros_core_no_default.stderr index c1a35af3c..676acc8db 100644 --- a/tests-build/tests/fail/macros_core_no_default.stderr +++ b/tests-build/tests/fail/macros_core_no_default.stderr @@ -1,5 +1,5 @@ error: The default runtime flavor is `multi_thread`, but the `rt-multi-thread` feature is disabled. - --> tests/fail/macros_core_no_default.rs:3:1 + --> $DIR/macros_core_no_default.rs:3:1 | 3 | #[tokio::main] | ^^^^^^^^^^^^^^ diff --git a/tests-build/tests/fail/macros_dead_code.stderr b/tests-build/tests/fail/macros_dead_code.stderr index 816c294bd..a46538a83 100644 --- a/tests-build/tests/fail/macros_dead_code.stderr +++ b/tests-build/tests/fail/macros_dead_code.stderr @@ -1,4 +1,4 @@ -error: function is never used: `f` +error: function `f` is never used --> $DIR/macros_dead_code.rs:6:10 | 6 | async fn f() {}