Skip to content

Commit 39fa5c0

Browse files
committed
Fix test cases on musl
1 parent 276e7f0 commit 39fa5c0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/fspp/fuse/flush/FuseFlushErrorTest.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ using fspp::fuse::FuseErrnoException;
1414

1515
class FuseFlushErrorTest: public FuseFlushTest, public WithParamInterface<int> {
1616
};
17-
INSTANTIATE_TEST_CASE_P(FuseFlushErrorTest, FuseFlushErrorTest, Values(EBADF, EINTR, EIO));
17+
INSTANTIATE_TEST_CASE_P(FuseFlushErrorTest, FuseFlushErrorTest, Values(
18+
EBADF,
19+
#if defined(__GLIBC__) || defined(__APPLE__)
20+
// musl has different handling for EINTR, see https://ewontfix.com/4/
21+
EINTR,
22+
#endif
23+
EIO));
1824

1925
TEST_P(FuseFlushErrorTest, ReturnErrorFromFlush) {
2026
ReturnIsFileOnLstat(FILENAME);

0 commit comments

Comments
 (0)