aboutsummaryrefslogtreecommitdiff
path: root/vendor/patches/portable-pty/0002-windows-raw-command-tail.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/patches/portable-pty/0002-windows-raw-command-tail.patch')
-rw-r--r--vendor/patches/portable-pty/0002-windows-raw-command-tail.patch11
1 files changed, 7 insertions, 4 deletions
diff --git a/vendor/patches/portable-pty/0002-windows-raw-command-tail.patch b/vendor/patches/portable-pty/0002-windows-raw-command-tail.patch
index a9d40743..f2dec1e3 100644
--- a/vendor/patches/portable-pty/0002-windows-raw-command-tail.patch
+++ b/vendor/patches/portable-pty/0002-windows-raw-command-tail.patch
@@ -86,10 +86,10 @@ index 0000000..0000000 100644
// Ensure that the command line is nul terminated too!
cmdline.push(0);
Ok((exe, cmdline))
-@@ -820,4 +846,27 @@ mod tests {
- cmd.env_remove("cARGO_pKG_aUTHORS");
- assert!(cmd.get_env("CARGO_PKG_AUTHORS").is_none());
+@@ -810,6 +836,29 @@ mod tests {
+ }
}
+-
+
+ #[cfg(windows)]
+ #[test]
@@ -113,4 +113,7 @@ index 0000000..0000000 100644
+ assert!(command.ends_with(r#"/d /c echo "hi""#), "{}", command);
+ assert!(!command.contains(r#"\"hi\""#), "{}", command);
+ }
- }
++
+ #[cfg(windows)]
+ #[test]
+ fn test_env_case_insensitive_override() {