authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-07-26 14:11:49+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-07-26 14:11:49+02:00
log960e5c329a5436d1e5748948c5744c1a11ddecbb
tree2b5622f2ef28f34312d48810018a61e2beba04f4
parent4ab595239f2318b0331295d9de38018ea02435f1

link-test: expect exit code of 0 for TBDv3 test


1 files changed, 3 insertions(+), 2 deletions(-)

test/link/macho/tbdv3/build.zig+3-2
......@@ -39,11 +39,11 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize
3939 );
4040
4141 const exe = b.addExecutable(.{
42 .name = "main",
43 .root_source_file = .{ .path = "main.c" },
42 .name = "test",
4443 .optimize = optimize,
4544 .target = target,
4645 });
46 exe.addCSourceFile("main.c", &[0][]const u8{});
4747 exe.linkSystemLibrary("a");
4848 exe.addLibraryPathDirectorySource(tbd_file.getDirectorySource());
4949 exe.addRPathDirectorySource(lib.getOutputDirectorySource());
......@@ -51,6 +51,7 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize
5151
5252 const run = b.addRunArtifact(exe);
5353 run.skip_foreign_checks = true;
54 run.expectExitCode(0);
5455
5556 test_step.dependOn(&run.step);
5657}