authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-10-16 21:45:28+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-10-16 21:45:28+02:00
log77443ac2b54aa4f6ccf8046fe787d7409af526d2
tree8f320756b491e8c6334dae651af9304b271ee9d3
parentd2727b808cf0876a91b78b3d40a776fc60d2bd58

elf: skip tests on foreign architectures


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

test/link/elf.zig+4
...@@ -140,6 +140,7 @@ fn testAbsSymbols(b: *Build, opts: Options) *Step {...@@ -140,6 +140,7 @@ fn testAbsSymbols(b: *Build, opts: Options) *Step {
140 exe.linkLibC();140 exe.linkLibC();
141141
142 const run = addRunArtifact(exe);142 const run = addRunArtifact(exe);
143 run.expectExitCode(0);
143 test_step.dependOn(&run.step);144 test_step.dependOn(&run.step);
144145
145 return test_step;146 return test_step;
...@@ -764,6 +765,7 @@ fn testFuncAddress(b: *Build, opts: Options) *Step {...@@ -764,6 +765,7 @@ fn testFuncAddress(b: *Build, opts: Options) *Step {
764 exe.pie = false;765 exe.pie = false;
765766
766 const run = addRunArtifact(exe);767 const run = addRunArtifact(exe);
768 run.expectExitCode(0);
767 test_step.dependOn(&run.step);769 test_step.dependOn(&run.step);
768770
769 return test_step;771 return test_step;
...@@ -940,6 +942,7 @@ fn testIFuncDlopen(b: *Build, opts: Options) *Step {...@@ -940,6 +942,7 @@ fn testIFuncDlopen(b: *Build, opts: Options) *Step {
940 exe.pie = false;942 exe.pie = false;
941943
942 const run = addRunArtifact(exe);944 const run = addRunArtifact(exe);
945 run.expectExitCode(0);
943 test_step.dependOn(&run.step);946 test_step.dependOn(&run.step);
944947
945 return test_step;948 return test_step;
...@@ -1469,6 +1472,7 @@ fn testLargeBss(b: *Build, opts: Options) *Step {...@@ -1469,6 +1472,7 @@ fn testLargeBss(b: *Build, opts: Options) *Step {
1469 exe.linkLibC();1472 exe.linkLibC();
14701473
1471 const run = addRunArtifact(exe);1474 const run = addRunArtifact(exe);
1475 run.expectExitCode(0);
1472 test_step.dependOn(&run.step);1476 test_step.dependOn(&run.step);
14731477
1474 return test_step;1478 return test_step;