Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tests/unittests/Types_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ TEST(AnErrorFactory, CanCreateAnErrorFromErrno)
EXPECT_TRUE(error.isValid());
}

#ifndef SDBUS_basu // Creating error from invalid errno is not supported on basu backend
TEST(AnErrorFactory, CreatesGenericErrorWhenErrnoIsUnknown)
{
auto error = sdbus::createError(123456, "custom message");
Expand All @@ -496,6 +497,7 @@ TEST(AnErrorFactory, CreatesGenericErrorWhenErrnoIsUnknown)
EXPECT_THAT(error.getMessage(), Eq<std::string>("custom message (Unknown error 123456)"));
EXPECT_TRUE(error.isValid());
}
#endif // SDBUS_basu

TEST(AnErrorFactory, CreatesEmptyInvalidErrorWhenErrnoIsZero)
{
Expand Down