Skip to content

Commit 800c5de

Browse files
committed
update the stack trace test case for lines added to start.zig
1 parent 2315331 commit 800c5de

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/std/os/bits/linux/powerpc64.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub const SYS = extern enum(usize) {
2626
mknod = 14,
2727
chmod = 15,
2828
lchown = 16,
29-
sys_break = 17, // sys_ prepended to avoid clashing with keyword
29+
@"break" = 17,
3030
oldstat = 18,
3131
lseek = 19,
3232
getpid = 20,
@@ -574,7 +574,7 @@ pub const vrregset = extern struct {
574574
_pad1: [2]u32,
575575
vscr_word_be: u32,
576576
vrsave: u32,
577-
_pad2: [3]u32
577+
_pad2: [3]u32,
578578
};
579579
pub const vrregset_t = vrregset;
580580

@@ -588,7 +588,7 @@ pub const mcontext_t = extern struct {
588588
gp_regs: gregset_t,
589589
fp_regs: fpregset_t,
590590
v_regs: *vrregset_t,
591-
vmx_reserve: [34+34+32+1]i64,
591+
vmx_reserve: [34 + 34 + 32 + 1]i64,
592592
};
593593

594594
pub const ucontext_t = extern struct {

test/stack_traces.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,10 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
282282
\\source.zig:10:8: [address] in main (test)
283283
\\ foo();
284284
\\ ^
285-
\\start.zig:254:29: [address] in std.start.posixCallMainAndExit (test)
285+
\\start.zig:269:29: [address] in std.start.posixCallMainAndExit (test)
286286
\\ return root.main();
287287
\\ ^
288-
\\start.zig:128:5: [address] in std.start._start (test)
288+
\\start.zig:143:5: [address] in std.start._start (test)
289289
\\ @call(.{ .modifier = .never_inline }, posixCallMainAndExit, .{});
290290
\\ ^
291291
\\
@@ -294,7 +294,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
294294
switch (std.Target.current.cpu.arch) {
295295
.aarch64 => "", // TODO disabled; results in segfault
296296
else =>
297-
\\start.zig:128:5: [address] in std.start._start (test)
297+
\\start.zig:143:5: [address] in std.start._start (test)
298298
\\ @call(.{ .modifier = .never_inline }, posixCallMainAndExit, .{});
299299
\\ ^
300300
\\

0 commit comments

Comments
 (0)