Skip to content

Commit 62d2ff0

Browse files
Skip lazy_init-throw test on libmusl platforms
1 parent ef24195 commit 62d2ff0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/mlib/lazy_init.test.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ struct throws_on_first_call {
3838
};
3939

4040
TEST_CASE("mlib/lazy_init/Throw during init") {
41+
#if !(defined(_MSC_VER) || defined(__USE_GNU))
42+
SKIP("call_once implementation is incorrect in musl C regarding exceptions");
43+
#endif
4144
mlib::lazy_threadsafe<int, throws_on_first_call> i;
4245
// Throwing during init will throw
4346
CHECK_THROWS_AS(*i, std::runtime_error);

0 commit comments

Comments
 (0)