mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 21:08:36 +00:00
elf: refactor canonical PLT test
This commit is contained in:
parent
1772dbb503
commit
b6006df565
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user