From 2d414d1abfaff61e03d5a6c1f6861c864f069228 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 17 Nov 2023 09:25:34 -0600 Subject: [PATCH] test(compiler): Make inner test names more specific This will make it easier to verify other env variables later --- tests/testsuite/build.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/testsuite/build.rs b/tests/testsuite/build.rs index 8ec05061e82d..4b58b90b0510 100644 --- a/tests/testsuite/build.rs +++ b/tests/testsuite/build.rs @@ -1584,7 +1584,7 @@ fn crate_env_vars() { } #[test] - fn env() { + fn unit_env_cargo_target_tmpdir() { // Check that CARGO_TARGET_TMPDIR isn't set for unit tests assert!(option_env!("CARGO_TARGET_TMPDIR").is_none()); env::var("CARGO_TARGET_TMPDIR").unwrap_err(); @@ -1612,7 +1612,7 @@ fn crate_env_vars() { "tests/env.rs", r#" #[test] - fn env() { + fn integration_env_cargo_target_tmpdir() { foo::check_tmpdir(option_env!("CARGO_TARGET_TMPDIR")); } "#, @@ -1627,7 +1627,7 @@ fn crate_env_vars() { use test::Bencher; #[bench] - fn env(_: &mut Bencher) { + fn bench_env_cargo_target_tmpdir(_: &mut Bencher) { foo::check_tmpdir(option_env!("CARGO_TARGET_TMPDIR")); } "#,