diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-12-28 22:15:07 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-12-28 22:15:07 -0700 |
| commit | a62353fb4b3b060ff714824e5c105bcf73419e66 (patch) | |
| tree | 3bf1d05d0cb1bc46a22abc592d1c9e1853cff4a3 /src/main.zig | |
| parent | e0a78d10ccb3c9b5d6ebb17f32ef3b79363cd4d0 (diff) | |
| download | zig-a62353fb4b3b060ff714824e5c105bcf73419e66.tar.gz zig-a62353fb4b3b060ff714824e5c105bcf73419e66.zip | |
fix `zig test` with regards to passing parameters
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig index 6c32529a5e..3bf9934d85 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1833,7 +1833,13 @@ fn buildOutputType( }); } else { for (test_exec_args.items) |arg| { - try argv.append(arg orelse exe_path); + if (arg) |a| { + try argv.append(a); + } else { + try argv.appendSlice(&[_][]const u8{ + exe_path, self_exe_path, + }); + } } } if (runtime_args_start) |i| { |
