Skip to content

Run the test suites on both platforms, and in CI - #7

Merged
hellerve merged 4 commits into
masterfrom
portable-tests
Sep 16, 2026
Merged

hellerve merged 4 commits into
masterfrom
portable-tests

Conversation

@hellerve

@hellerve hellerve commented Sep 16, 2026

Copy link
Copy Markdown
Member

Neither test suite ran anywhere: both hardcode libm.so.6, so they fail on macos, and CI ran neither. Stacked on #6, which is where test/typed.carp comes from.

  • test/platform.carp picks the library per platform off core's mac-target?, so the suites run on both runners.
  • test/typed.carp reported a failed dlopen or a failed binding with IO.errorln and then passed anyway, so it could only ever be green. it now asserts through Test, like test/dynlib.carp, and carries the error text into the failure message.
  • CI runs both suites. carp -x test/*.carp only executes one file, so they are listed separately.

on macos: test/dynlib.carp 6 assertions (was 1 of 6 passing), test/typed.carp 5. pointed at a deliberately missing library both go red, 5 of 6 and 5 of 5.

the readme example carries a comment naming both paths, since the snippet as written only runs on glibc.

Base automatically changed from ownership-aware-bindings to master September 16, 2026 22:53
@hellerve
hellerve merged commit 7595061 into master Sep 16, 2026
2 checks passed
@hellerve
hellerve deleted the portable-tests branch September 16, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant