Skip to content

fix GenericErrorWhenErrnoIsUnknown test on musl - #545

Merged
sangelovic merged 1 commit into
Kistler-Group:masterfrom
peppergrayxyz:musl_test
Sep 15, 2026
Merged

sangelovic merged 1 commit into
Kistler-Group:masterfrom
peppergrayxyz:musl_test

Conversation

@peppergrayxyz

Copy link
Copy Markdown
Contributor

testing on musl fails with error

sdbus-cpp/tests/unittests/Types_test.cpp:560: Failure
Value of: error.getMessage()
Expected: is equal to "custom message (Unknown error 123456)"
  Actual: "custom message (No error information)"

due to musl and glibc returning different error strings.

Extend test to cover both messages.

Closes: #544

testing on musl fails with error
```
sdbus-cpp/tests/unittests/Types_test.cpp:560: Failure
Value of: error.getMessage()
Expected: is equal to "custom message (Unknown error 123456)"
  Actual: "custom message (No error information)"
```
due to `musl` and `glibc` returning different error strings.

Extend test to cover both messages.

Closes: Kistler-Group#544
Signed-off-by: Pepper Gray <hello@peppergray.xyz>
@sangelovic
sangelovic merged commit 8c2bf0f into Kistler-Group:master Sep 15, 2026
10 checks passed
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.

musl test error: AnErrorFactory.CreatesGenericErrorWhenErrnoIsUnknown

2 participants