| ... | ... | @@ -39,11 +39,11 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize |
| 39 | 39 | ); |
| 40 | 40 | |
| 41 | 41 | const exe = b.addExecutable(.{ |
| 42 | | .name = "main", |
| 43 | | .root_source_file = .{ .path = "main.c" }, |
| 42 | .name = "test", |
| 44 | 43 | .optimize = optimize, |
| 45 | 44 | .target = target, |
| 46 | 45 | }); |
| 46 | exe.addCSourceFile("main.c", &[0][]const u8{}); |
| 47 | 47 | exe.linkSystemLibrary("a"); |
| 48 | 48 | exe.addLibraryPathDirectorySource(tbd_file.getDirectorySource()); |
| 49 | 49 | exe.addRPathDirectorySource(lib.getOutputDirectorySource()); |
| ... | ... | @@ -51,6 +51,7 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize |
| 51 | 51 | |
| 52 | 52 | const run = b.addRunArtifact(exe); |
| 53 | 53 | run.skip_foreign_checks = true; |
| 54 | run.expectExitCode(0); |
| 54 | 55 | |
| 55 | 56 | test_step.dependOn(&run.step); |
| 56 | 57 | } |