about summary refs log tree commit diff
path: root/library/std/src/process/tests.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2023-08-03 12:14:58 +0200
committerRalf Jung <post@ralfj.de>2023-08-24 08:10:09 +0200
commitfc75f723f681dc2cb1b0be7395c936adfb2f6f63 (patch)
tree282ecb85f536936040f5dc40d91a1120a405b9f5 /library/std/src/process/tests.rs
parent53a29e0e60b14486fbe06d0d68f311989d693816 (diff)
downloadrust-fc75f723f681dc2cb1b0be7395c936adfb2f6f63.tar.gz
rust-fc75f723f681dc2cb1b0be7395c936adfb2f6f63.zip
also use 'env' for printing unsetting
Diffstat (limited to 'library/std/src/process/tests.rs')
-rw-r--r--library/std/src/process/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/process/tests.rs b/library/std/src/process/tests.rs
index b50dea2e737..72894142d17 100644
--- a/library/std/src/process/tests.rs
+++ b/library/std/src/process/tests.rs
@@ -544,7 +544,7 @@ fn debug_print() {
 
     let mut command_with_removed_env = Command::new("boring-name");
     command_with_removed_env.env_remove("FOO").env_remove("BAR");
-    assert_eq!(format!("{command_with_removed_env:?}"), r#"unset BAR FOO && "boring-name""#);
+    assert_eq!(format!("{command_with_removed_env:?}"), r#"env -u BAR -u FOO "boring-name""#);
     assert_eq!(
         format!("{command_with_removed_env:#?}"),
         format!(