zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 4d2b216121e5fbdb019ab8e727df654e7b08e984 (tree)
parent ff89a98c50dbf826564657e7f98cc56194add163
Author: Jacob Young <jacobly0@users.noreply.github.com>
Date:   Tue, 10 Jun 2025 21:57:46 -0400

test-stack-traces: correct expected object file name

The name of the ZCU object file emitted by the LLVM backend has been
changed in this branch from e.g. `foo.obj` to `foo_zcu.obj`. This is to
avoid name clashes. This commit just updates the stack trace tests which
started failing on windows because of the object name change.

Diffstat:
Mtest/src/check-stack-trace.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/src/check-stack-trace.zig b/test/src/check-stack-trace.zig @@ -65,7 +65,7 @@ pub fn main() !void { // This actually violates the DWARF specification (DWARF5 ยง 3.1.1, lines 24-27). // The self-hosted backend uses the root Zig source file of the module (in compilance with the spec). if (std.mem.eql(u8, file_name, "test") or - std.mem.eql(u8, file_name, "test.exe.obj") or + std.mem.eql(u8, file_name, "test_zcu.obj") or std.mem.endsWith(u8, file_name, ".zig")) { try buf.appendSlice("[main_file]");