update stack trace test cases to new start.zig line offsets

This commit is contained in:
Andrew Kelley 2021-04-08 21:56:19 -07:00
parent 1b702f8ddb
commit 6d616d8257

View file

@ -282,10 +282,10 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
\\source.zig:10:8: [address] in main (test) \\source.zig:10:8: [address] in main (test)
\\ foo(); \\ foo();
\\ ^ \\ ^
\\start.zig:342:29: [address] in std.start.posixCallMainAndExit (test) \\start.zig:404:29: [address] in std.start.posixCallMainAndExit (test)
\\ return root.main(); \\ return root.main();
\\ ^ \\ ^
\\start.zig:163:5: [address] in std.start._start (test) \\start.zig:225:5: [address] in std.start._start (test)
\\ @call(.{ .modifier = .never_inline }, posixCallMainAndExit, .{}); \\ @call(.{ .modifier = .never_inline }, posixCallMainAndExit, .{});
\\ ^ \\ ^
\\ \\
@ -294,7 +294,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
switch (std.Target.current.cpu.arch) { switch (std.Target.current.cpu.arch) {
.aarch64 => "", // TODO disabled; results in segfault .aarch64 => "", // TODO disabled; results in segfault
else => else =>
\\start.zig:163:5: [address] in std.start._start (test) \\start.zig:225:5: [address] in std.start._start (test)
\\ @call(.{ .modifier = .never_inline }, posixCallMainAndExit, .{}); \\ @call(.{ .modifier = .never_inline }, posixCallMainAndExit, .{});
\\ ^ \\ ^
\\ \\