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.
This commit is contained in:
Jacob Young 2025-06-10 21:57:46 -04:00 committed by mlugg
parent ff89a98c50
commit 4d2b216121
No known key found for this signature in database
GPG Key ID: 3F5B7DCCBF4AF02E

View File

@ -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]");