Skip to content

Commit 9722e87

Browse files
committed
test(compiler): Make inner test names more specific
This will make it easier to verify other env variables later
1 parent a0fa452 commit 9722e87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/testsuite/build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1584,7 +1584,7 @@ fn crate_env_vars() {
15841584
}
15851585
15861586
#[test]
1587-
fn env() {
1587+
fn unit_env_cargo_target_tmpdir() {
15881588
// Check that CARGO_TARGET_TMPDIR isn't set for unit tests
15891589
assert!(option_env!("CARGO_TARGET_TMPDIR").is_none());
15901590
env::var("CARGO_TARGET_TMPDIR").unwrap_err();
@@ -1612,7 +1612,7 @@ fn crate_env_vars() {
16121612
"tests/env.rs",
16131613
r#"
16141614
#[test]
1615-
fn env() {
1615+
fn integration_env_cargo_target_tmpdir() {
16161616
foo::check_tmpdir(option_env!("CARGO_TARGET_TMPDIR"));
16171617
}
16181618
"#,
@@ -1627,7 +1627,7 @@ fn crate_env_vars() {
16271627
use test::Bencher;
16281628
16291629
#[bench]
1630-
fn env(_: &mut Bencher) {
1630+
fn bench_env_cargo_target_tmpdir(_: &mut Bencher) {
16311631
foo::check_tmpdir(option_env!("CARGO_TARGET_TMPDIR"));
16321632
}
16331633
"#,

0 commit comments

Comments
 (0)