zig

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

commit b6006df565182648ee78bc847053b8cd5278b681 (tree)
parent 1772dbb503429fcee453a3ee6db1eed4dfe7c5c9
Author: Jakub Konka <kubkon@jakubkonka.com>
Date:   Sat,  7 Oct 2023 21:03:18 +0200

elf: refactor canonical PLT test

Diffstat:
Mtest/link/elf.zig | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/test/link/elf.zig b/test/link/elf.zig @@ -205,6 +205,7 @@ fn testCanonicalPlt(b: *Build, opts: Options) *Step { \\ assert(foo == foo()); \\ assert(bar == bar()); \\ assert(bar == baz()); + \\ return 0; \\} , &.{"-fno-PIC"}); main_o.linkLibC(); @@ -217,6 +218,7 @@ fn testCanonicalPlt(b: *Build, opts: Options) *Step { exe.pie = false; const run = addRunArtifact(exe); + run.expectExitCode(0); test_step.dependOn(&run.step); return test_step;