Skip to content

Commit a1d20db

Browse files
committed
test: Added test for artifact-dir locking behavior
1 parent da0dfd3 commit a1d20db

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/testsuite/check.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1709,3 +1709,13 @@ fn check_build_should_not_output_files_to_artifact_dir() {
17091709
17101710
"#]]);
17111711
}
1712+
1713+
#[cargo_test]
1714+
fn check_build_should_lock_artifact_dir() {
1715+
let p = project()
1716+
.file("src/main.rs", r#"fn main() { println!("Hello, World!") }"#)
1717+
.build();
1718+
1719+
p.cargo("check").enable_mac_dsym().run();
1720+
assert!(p.root().join("target/debug/.cargo-lock").exists());
1721+
}

0 commit comments

Comments
 (0)