Skip to content

Commit ff58b4c

Browse files
committed
fix(std/assert): hotfix, actually run dlopen tests
1 parent 986745c commit ff58b4c

File tree

1 file changed

+19
-23
lines changed

1 file changed

+19
-23
lines changed

packages/std/assert.tg.ts

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -406,31 +406,27 @@ export const linkableLib = async (arg: LibraryArg) => {
406406

407407
// Check for the dylib if requested.
408408
if (dylib) {
409-
tests.push(async () => {
410-
// Combine internal libnames with external runtime dependency libnames.
411-
const dylibName_ = dylibName(name);
412-
413-
// Assert the files exist.
414-
await fileExists({
409+
const dylibName_ = dylibName(name);
410+
const runtimeDepDirs = runtimeDeps.map((dep) => dep.directory);
411+
const runtimeDepLibs = runtimeDeps.flatMap((dep) =>
412+
dep.libs.map(dylibName),
413+
);
414+
tests.push(
415+
fileExists({
415416
directory: arg.directory,
416417
subpath: `lib/${dylibName_}`,
417-
});
418-
419-
// Assert it can be dlopened.
420-
const runtimeDepDirs = runtimeDeps.map((dep) => dep.directory);
421-
const runtimeDepLibs = runtimeDeps.flatMap((dep) =>
422-
dep.libs.map(dylibName),
423-
);
424-
await dlopen({
425-
directory: arg.directory,
426-
dylib: dylibName_,
427-
env,
428-
host,
429-
runtimeDepDirs,
430-
runtimeDepLibs,
431-
sdk,
432-
});
433-
});
418+
}).then(() =>
419+
dlopen({
420+
directory: arg.directory,
421+
dylib: dylibName_,
422+
env,
423+
host,
424+
runtimeDepDirs,
425+
runtimeDepLibs,
426+
sdk,
427+
}),
428+
),
429+
);
434430
}
435431

436432
// Check for the staticlib if requested.

0 commit comments

Comments
 (0)