aboutsummaryrefslogtreecommitdiff
path: root/std/process.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-06-09 19:44:01 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-06-09 19:44:01 -0400
commit3a4b749c8a1124734c3202ec0d6f4f6566e7dc7e (patch)
treed02ca4c7ff46abf748fa175a68d13eccebb97a92 /std/process.zig
parent59fe13772f63838a84ac1786c0dc8361cd14b99d (diff)
parentb735764898412c5b9388fdf729c8ad8db43ddde5 (diff)
downloadzig-3a4b749c8a1124734c3202ec0d6f4f6566e7dc7e.tar.gz
zig-3a4b749c8a1124734c3202ec0d6f4f6566e7dc7e.zip
Merge remote-tracking branch 'origin/master' into copy-elision-3
Diffstat (limited to 'std/process.zig')
-rw-r--r--std/process.zig16
1 files changed, 8 insertions, 8 deletions
diff --git a/std/process.zig b/std/process.zig
index 7c5e7fbb07..410575297e 100644
--- a/std/process.zig
+++ b/std/process.zig
@@ -474,14 +474,14 @@ pub fn argsFree(allocator: *mem.Allocator, args_alloc: []const []u8) void {
}
test "windows arg parsing" {
- testWindowsCmdLine(c"a b\tc d", [][]const u8{ "a", "b", "c", "d" });
- testWindowsCmdLine(c"\"abc\" d e", [][]const u8{ "abc", "d", "e" });
- testWindowsCmdLine(c"a\\\\\\b d\"e f\"g h", [][]const u8{ "a\\\\\\b", "de fg", "h" });
- testWindowsCmdLine(c"a\\\\\\\"b c d", [][]const u8{ "a\\\"b", "c", "d" });
- testWindowsCmdLine(c"a\\\\\\\\\"b c\" d e", [][]const u8{ "a\\\\b c", "d", "e" });
- testWindowsCmdLine(c"a b\tc \"d f", [][]const u8{ "a", "b", "c", "\"d", "f" });
-
- testWindowsCmdLine(c"\".\\..\\zig-cache\\build\" \"bin\\zig.exe\" \".\\..\" \".\\..\\zig-cache\" \"--help\"", [][]const u8{
+ testWindowsCmdLine(c"a b\tc d", [_][]const u8{ "a", "b", "c", "d" });
+ testWindowsCmdLine(c"\"abc\" d e", [_][]const u8{ "abc", "d", "e" });
+ testWindowsCmdLine(c"a\\\\\\b d\"e f\"g h", [_][]const u8{ "a\\\\\\b", "de fg", "h" });
+ testWindowsCmdLine(c"a\\\\\\\"b c d", [_][]const u8{ "a\\\"b", "c", "d" });
+ testWindowsCmdLine(c"a\\\\\\\\\"b c\" d e", [_][]const u8{ "a\\\\b c", "d", "e" });
+ testWindowsCmdLine(c"a b\tc \"d f", [_][]const u8{ "a", "b", "c", "\"d", "f" });
+
+ testWindowsCmdLine(c"\".\\..\\zig-cache\\build\" \"bin\\zig.exe\" \".\\..\" \".\\..\\zig-cache\" \"--help\"", [_][]const u8{
".\\..\\zig-cache\\build",
"bin\\zig.exe",
".\\..",