Fix test cases on musl
This commit is contained in:
parent
276e7f08e4
commit
39fa5c00df
|
@ -14,7 +14,13 @@ using fspp::fuse::FuseErrnoException;
|
|||
|
||||
class FuseFlushErrorTest: public FuseFlushTest, public WithParamInterface<int> {
|
||||
};
|
||||
INSTANTIATE_TEST_CASE_P(FuseFlushErrorTest, FuseFlushErrorTest, Values(EBADF, EINTR, EIO));
|
||||
INSTANTIATE_TEST_CASE_P(FuseFlushErrorTest, FuseFlushErrorTest, Values(
|
||||
EBADF,
|
||||
#if defined(__GLIBC__) || defined(__APPLE__)
|
||||
// musl has different handling for EINTR, see https://ewontfix.com/4/
|
||||
EINTR,
|
||||
#endif
|
||||
EIO));
|
||||
|
||||
TEST_P(FuseFlushErrorTest, ReturnErrorFromFlush) {
|
||||
ReturnIsFileOnLstat(FILENAME);
|
||||
|
|
Loading…
Reference in New Issue