mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
split a fat test case
This commit is contained in:
parent
5d75d8f6fc
commit
22948616ff
1 changed files with 77 additions and 75 deletions
|
|
@ -51,6 +51,7 @@ pub fn testAll(b: *Build, build_opts: BuildOptions) *Step {
|
|||
elf_step.dependOn(testEmitRelocatable(b, .{ .target = musl_target }));
|
||||
elf_step.dependOn(testRelocatableArchive(b, .{ .target = musl_target }));
|
||||
elf_step.dependOn(testRelocatableEhFrame(b, .{ .target = musl_target }));
|
||||
elf_step.dependOn(testRelocatableEhFrameComdatHeavy(b, .{ .target = musl_target }));
|
||||
elf_step.dependOn(testRelocatableNoEhFrame(b, .{ .target = musl_target }));
|
||||
|
||||
// Exercise linker in ar mode
|
||||
|
|
@ -2723,7 +2724,6 @@ fn testRelocatableArchive(b: *Build, opts: Options) *Step {
|
|||
fn testRelocatableEhFrame(b: *Build, opts: Options) *Step {
|
||||
const test_step = addTestStep(b, "relocatable-eh-frame", opts);
|
||||
|
||||
{
|
||||
const obj = addObject(b, opts, .{
|
||||
.name = "obj1",
|
||||
.cpp_source_bytes =
|
||||
|
|
@ -2761,10 +2761,13 @@ fn testRelocatableEhFrame(b: *Build, opts: Options) *Step {
|
|||
const run = addRunArtifact(exe);
|
||||
run.expectStdOutEqual("exception=Oh no!");
|
||||
test_step.dependOn(&run.step);
|
||||
|
||||
return test_step;
|
||||
}
|
||||
|
||||
{
|
||||
// Let's make the object file COMDAT group heavy!
|
||||
fn testRelocatableEhFrameComdatHeavy(b: *Build, opts: Options) *Step {
|
||||
const test_step = addTestStep(b, "relocatable-eh-frame-comdat-heavy", opts);
|
||||
|
||||
const obj = addObject(b, opts, .{
|
||||
.name = "obj2",
|
||||
.cpp_source_bytes =
|
||||
|
|
@ -2802,7 +2805,6 @@ fn testRelocatableEhFrame(b: *Build, opts: Options) *Step {
|
|||
const run = addRunArtifact(exe);
|
||||
run.expectStdOutEqual("exception=Oh no!");
|
||||
test_step.dependOn(&run.step);
|
||||
}
|
||||
|
||||
return test_step;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue