Skip to content

Commit

Permalink
test(compiler): Make inner test names more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Nov 17, 2023
1 parent 2dceca7 commit 0361ff5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testsuite/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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"));
}
"#,
Expand All @@ -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"));
}
"#,
Expand Down

0 comments on commit 0361ff5

Please sign in to comment.