aboutsummaryrefslogtreecommitdiff
path: root/test/tests.zig
diff options
context:
space:
mode:
authorMason Remaley <MasonRemaley@users.noreply.github.com>2023-05-24 14:26:07 -0700
committerGitHub <noreply@github.com>2023-05-24 14:26:07 -0700
commit5744ceedb8ea4b3e5906175033f634b17287f3ca (patch)
tree5e5178c8f53a7bf6ffadfc713051661e04220de8 /test/tests.zig
parentc9dffc842e5b9875066f012daaa0888d073ba584 (diff)
downloadzig-5744ceedb8ea4b3e5906175033f634b17287f3ca.tar.gz
zig-5744ceedb8ea4b3e5906175033f634b17287f3ca.zip
Fixes `WriteFile.getFileSource` failure on Windows (#15730)
Diffstat (limited to 'test/tests.zig')
-rw-r--r--test/tests.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tests.zig b/test/tests.zig
index 641914aabe..5912ceb907 100644
--- a/test/tests.zig
+++ b/test/tests.zig
@@ -759,7 +759,7 @@ pub fn addCliTests(b: *std.Build) *Step {
"-fno-emit-bin", "-fno-emit-h",
"-fstrip", "-OReleaseFast",
});
- run.addFileSourceArg(writefile.getFileSource("example.zig").?);
+ run.addFileSourceArg(writefile.files.items[0].getFileSource());
const example_s = run.addPrefixedOutputFileArg("-femit-asm=", "example.s");
const checkfile = b.addCheckFile(example_s, .{