authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-10-07 21:03:18+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-10-16 19:33:05+02:00
logb6006df565182648ee78bc847053b8cd5278b681
tree2a25a67501ebfea78f2483ec9379d7b20e02487b
parent1772dbb503429fcee453a3ee6db1eed4dfe7c5c9

elf: refactor canonical PLT test


1 files changed, 2 insertions(+), 0 deletions(-)

test/link/elf.zig+2
...@@ -205,6 +205,7 @@ fn testCanonicalPlt(b: *Build, opts: Options) *Step {...@@ -205,6 +205,7 @@ fn testCanonicalPlt(b: *Build, opts: Options) *Step {
205 \\ assert(foo == foo());205 \\ assert(foo == foo());
206 \\ assert(bar == bar());206 \\ assert(bar == bar());
207 \\ assert(bar == baz());207 \\ assert(bar == baz());
208 \\ return 0;
208 \\}209 \\}
209 , &.{"-fno-PIC"});210 , &.{"-fno-PIC"});
210 main_o.linkLibC();211 main_o.linkLibC();
...@@ -217,6 +218,7 @@ fn testCanonicalPlt(b: *Build, opts: Options) *Step {...@@ -217,6 +218,7 @@ fn testCanonicalPlt(b: *Build, opts: Options) *Step {
217 exe.pie = false;218 exe.pie = false;
218219
219 const run = addRunArtifact(exe);220 const run = addRunArtifact(exe);
221 run.expectExitCode(0);
220 test_step.dependOn(&run.step);222 test_step.dependOn(&run.step);
221223
222 return test_step;224 return test_step;