mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
link-test: expect exit code of 0 for TBDv3 test
This commit is contained in:
parent
4ab595239f
commit
960e5c329a
1 changed files with 3 additions and 2 deletions
|
|
@ -39,11 +39,11 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize
|
|||
);
|
||||
|
||||
const exe = b.addExecutable(.{
|
||||
.name = "main",
|
||||
.root_source_file = .{ .path = "main.c" },
|
||||
.name = "test",
|
||||
.optimize = optimize,
|
||||
.target = target,
|
||||
});
|
||||
exe.addCSourceFile("main.c", &[0][]const u8{});
|
||||
exe.linkSystemLibrary("a");
|
||||
exe.addLibraryPathDirectorySource(tbd_file.getDirectorySource());
|
||||
exe.addRPathDirectorySource(lib.getOutputDirectorySource());
|
||||
|
|
@ -51,6 +51,7 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize
|
|||
|
||||
const run = b.addRunArtifact(exe);
|
||||
run.skip_foreign_checks = true;
|
||||
run.expectExitCode(0);
|
||||
|
||||
test_step.dependOn(&run.step);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue