commit 960e5c329a5436d1e5748948c5744c1a11ddecbb (tree)
parent 4ab595239f2318b0331295d9de38018ea02435f1
Author: Jakub Konka <kubkon@jakubkonka.com>
Date: Wed, 26 Jul 2023 14:11:49 +0200
link-test: expect exit code of 0 for TBDv3 test
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/test/link/macho/tbdv3/build.zig b/test/link/macho/tbdv3/build.zig
@@ -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);
}