aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-09-14 18:02:21 -0400
committerGitHub <noreply@github.com>2022-09-14 18:02:21 -0400
commitd834b180118cf336b09b8f664e294ec2222e6d16 (patch)
tree1c3450ba81bed2e4125bf21e21ce2e03631ca53e /lib/std
parent61aaef0b074dc2567e4c35c9cb55cb042c18d065 (diff)
parent85b10eb07c27d021804473ee54a0b5942e4784d5 (diff)
downloadzig-d834b180118cf336b09b8f664e294ec2222e6d16.tar.gz
zig-d834b180118cf336b09b8f664e294ec2222e6d16.zip
Merge pull request #11633 from SpexGuy
Remove `std.testing.zig_exe_path` in favor of `ZIG_EXE` environment variable
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/process.zig1
-rw-r--r--lib/std/testing.zig4
2 files changed, 0 insertions, 5 deletions
diff --git a/lib/std/process.zig b/lib/std/process.zig
index d8604edab8..2c51ec2d60 100644
--- a/lib/std/process.zig
+++ b/lib/std/process.zig
@@ -822,7 +822,6 @@ test "args iterator" {
const given_suffix = std.fs.path.basename(prog_name);
try testing.expect(mem.eql(u8, expected_suffix, given_suffix));
- try testing.expect(it.skip()); // Skip over zig_exe_path, passed to the test runner
try testing.expect(it.next() == null);
try testing.expect(!it.skip());
}
diff --git a/lib/std/testing.zig b/lib/std/testing.zig
index 67f6b33122..c71e2d39c9 100644
--- a/lib/std/testing.zig
+++ b/lib/std/testing.zig
@@ -22,10 +22,6 @@ pub var base_allocator_instance = std.heap.FixedBufferAllocator.init("");
/// TODO https://github.com/ziglang/zig/issues/5738
pub var log_level = std.log.Level.warn;
-/// This is available to any test that wants to execute Zig in a child process.
-/// It will be the same executable that is running `zig test`.
-pub var zig_exe_path: []const u8 = undefined;
-
/// This function is intended to be used only in tests. It prints diagnostics to stderr
/// and then returns a test failure error when actual_error_union is not expected_error.
pub fn expectError(expected_error: anyerror, actual_error_union: anytype) !void {