Skip to content

Conversation

@dgburr
Copy link
Contributor

@dgburr dgburr commented Nov 2, 2025

Description

There are a few issues with using the check library to test the C language bindings:

  1. check does not appear to be actively maintained
  2. The latest version of check does not compile with recent versions of MinGW64 (see Fix compilation using MinGW-W64 13 and later libcheck/check#364)
  3. check only used by libsbp; all of the other swift repos have switched over to gtest

This PR converts the C language bindings to use gtest, which means compiling the unit tests as C++ instead of C.

The changes in this PR are loosely modelled on https://github.com/swift-nav/libswiftnav-private/commit/1f13a3b0e5125b3396c4d9abaf1fcddd3ffd17e2.

API compatibility

Does this change introduce a API compatibility risk?

No, it only changes test cases.

API compatibility plan

If the above is "Yes", please detail the compatibility (or migration) plan:

N/A

JIRA Reference

https://swift-nav.atlassian.net/browse/BOARD-XXXX

@dgburr dgburr requested a review from a team as a code owner November 2, 2025 00:39
@dgburr dgburr requested a review from woodfell November 2, 2025 15:10
Copy link
Contributor

@martin4861 martin4861 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dgburr
Copy link
Contributor Author

dgburr commented Nov 3, 2025

lgtm, could you remove https://github.com/swift-nav/libsbp/blob/master/MODULE.bazel#L30 too?

Good catch, thanks!

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 3, 2025

@dgburr dgburr mentioned this pull request Nov 3, 2025
@dgburr dgburr merged commit f4a5ffc into master Nov 3, 2025
24 checks passed
@dgburr dgburr deleted the gtest branch November 3, 2025 17:14
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.

3 participants