aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2023-03-23 23:46:49 +0100
committerJakub Konka <kubkon@jakubkonka.com>2023-03-23 23:46:53 +0100
commit145f93ba961fb9eea66a39b60e93c2aa5e26ee40 (patch)
tree8543ed95141e710f90676e140f7a5c5e09ff33b0 /test
parent5d2892740a842378fd03ced7af1c1ce6d1411539 (diff)
downloadzig-145f93ba961fb9eea66a39b60e93c2aa5e26ee40.tar.gz
zig-145f93ba961fb9eea66a39b60e93c2aa5e26ee40.zip
build: allow for deferred FileSource matching in CheckObjectStep
Re-enable all of functionality of MachO dylib test.
Diffstat (limited to 'test')
-rw-r--r--test/link/macho/dylib/build.zig5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/link/macho/dylib/build.zig b/test/link/macho/dylib/build.zig
index 2d775aa23f..a4085b51e6 100644
--- a/test/link/macho/dylib/build.zig
+++ b/test/link/macho/dylib/build.zig
@@ -52,10 +52,7 @@ fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.Optimize
check_exe.checkNext("compatibility version 10000");
check_exe.checkStart("cmd RPATH");
- // TODO check this (perhaps with `checkNextFileSource(dylib.getOutputDirectorySource())`)
- //check_exe.checkNext(std.fmt.allocPrint(b.allocator, "path {s}", .{
- // b.pathFromRoot("zig-out/lib"),
- //}) catch unreachable);
+ check_exe.checkNextFileSource("path", dylib.getOutputDirectorySource());
const run = check_exe.runAndCompare();
run.expectStdOutEqual("Hello world");