Skip to content

Commit 5c3b534

Browse files
committed
test(add): Show quoting behavior for --target
1 parent 4219b66 commit 5c3b534

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/testsuite/cargo_add/target_cfg/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fn case() {
2828

2929
snapbox::cmd::Command::cargo_ui()
3030
.arg("add")
31-
.arg_line("my-package1 my-package2 --target cfg(unix)")
31+
.arg_line("my-package1 my-package2 --target 'cfg(target_os=\"linux\")'")
3232
.current_dir(cwd)
3333
.assert()
3434
.success()

tests/testsuite/cargo_add/target_cfg/out/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ name = "cargo-list-test-fixture"
55
version = "0.0.0"
66
edition = "2015"
77

8-
[target."cfg(unix)".dependencies]
8+
[target."cfg(target_os=/"linux/")".dependencies]
99
my-package1 = "99999.0.0"
1010
my-package2 = "99999.0.0"

tests/testsuite/cargo_add/target_cfg/stderr.term.svg

Lines changed: 3 additions & 3 deletions
Loading

0 commit comments

Comments
 (0)