Skip to content

Commit

Permalink
test: Prefer official cargo_bin
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jun 10, 2024
1 parent 399e3f6 commit 0fc11f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/snapbox/tests/testsuite/cmd.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#[test]
fn regular_stdout_split() {
snapbox::cmd::Command::new(snapbox::cmd::cargo_bin("snap-fixture"))
snapbox::cmd::Command::new(snapbox::cmd::cargo_bin!("snap-fixture"))
.env("echo_cwd", "1")
.assert()
.success();
}

#[test]
fn large_stdout_split() {
snapbox::cmd::Command::new(snapbox::cmd::cargo_bin("snap-fixture"))
snapbox::cmd::Command::new(snapbox::cmd::cargo_bin!("snap-fixture"))
.env("echo_large", "1")
.assert()
.success();
Expand All @@ -17,7 +17,7 @@ fn large_stdout_split() {
#[test]
#[cfg(feature = "cmd")]
fn regular_stdout_single() {
snapbox::cmd::Command::new(snapbox::cmd::cargo_bin("snap-fixture"))
snapbox::cmd::Command::new(snapbox::cmd::cargo_bin!("snap-fixture"))
.env("echo_cwd", "1")
.stderr_to_stdout()
.assert()
Expand All @@ -27,7 +27,7 @@ fn regular_stdout_single() {
#[test]
#[cfg(feature = "cmd")]
fn large_stdout_single() {
snapbox::cmd::Command::new(snapbox::cmd::cargo_bin("snap-fixture"))
snapbox::cmd::Command::new(snapbox::cmd::cargo_bin!("snap-fixture"))
.env("echo_large", "1")
.stderr_to_stdout()
.assert()
Expand Down

0 comments on commit 0fc11f2

Please sign in to comment.