diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-12-28 20:00:34 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-12-28 20:00:34 -0700 |
| commit | 7ca9f3bc7ba1a413ea7f8b88dfafba3d0f842f6e (patch) | |
| tree | f326c402505227073fcd57142debe09c5c83cdf0 /src/main.zig | |
| parent | a54ccd85374407a5015c5d8e0173089e75da9be4 (diff) | |
| download | zig-7ca9f3bc7ba1a413ea7f8b88dfafba3d0f842f6e.tar.gz zig-7ca9f3bc7ba1a413ea7f8b88dfafba3d0f842f6e.zip | |
zig test: std.testing.zig_exe_path is now available
it will be set to the path of the zig executable which is running
`zig test`.
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig index 15bb3be602..6c32529a5e 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1828,7 +1828,9 @@ fn buildOutputType( else => unreachable, } } - try argv.append(exe_path); + try argv.appendSlice(&[_][]const u8{ + exe_path, self_exe_path, + }); } else { for (test_exec_args.items) |arg| { try argv.append(arg orelse exe_path); |
