diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-10-11 10:16:13 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-10-11 22:50:16 -0400 |
| commit | b61a6ec8a6ba7222efd3749a9c5ae30db7e4ef6b (patch) | |
| tree | 252787d924d7753b3e8f5d1e1452c8986c1c9af8 /test/compare_output.zig | |
| parent | 717e791db2c49c46a913c574946e9f410a6d9168 (diff) | |
| download | zig-b61a6ec8a6ba7222efd3749a9c5ae30db7e4ef6b.tar.gz zig-b61a6ec8a6ba7222efd3749a9c5ae30db7e4ef6b.zip | |
implement command line argument parsing for windows
See #302
Diffstat (limited to 'test/compare_output.zig')
| -rw-r--r-- | test/compare_output.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/compare_output.zig b/test/compare_output.zig index 5b84d7ddbd..a601598e7f 100644 --- a/test/compare_output.zig +++ b/test/compare_output.zig @@ -346,7 +346,8 @@ pub fn addCases(cases: &tests.CompareOutputContext) { \\ %%io.stdout.printf("before\n"); \\ defer %%io.stdout.printf("defer1\n"); \\ defer %%io.stdout.printf("defer2\n"); - \\ if (os.args.count() == 1) return; + \\ var args_it = @import("std").os.args(); + \\ if (args_it.skip() and !args_it.skip()) return; \\ defer %%io.stdout.printf("defer3\n"); \\ %%io.stdout.printf("after\n"); \\} |
