mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Fix test.
This commit is contained in:
@ -107,13 +107,13 @@ test::ssize_t test::write(int fildes, const void *buf, test::size_t nbyte) {
|
|||||||
statement; \
|
statement; \
|
||||||
EXPECT_EQ(4, func##_count); \
|
EXPECT_EQ(4, func##_count); \
|
||||||
func##_count = 0;
|
func##_count = 0;
|
||||||
# define EXPECT_EQ_POSIX(expected, actual)
|
# define EXPECT_EQ_POSIX(expected, actual) EXPECT_EQ(expected, actual)
|
||||||
#else
|
#else
|
||||||
# define EXPECT_RETRY(statement, func, message) \
|
# define EXPECT_RETRY(statement, func, message) \
|
||||||
func##_count = 1; \
|
func##_count = 1; \
|
||||||
EXPECT_SYSTEM_ERROR(statement, EINTR, message); \
|
EXPECT_SYSTEM_ERROR(statement, EINTR, message); \
|
||||||
func##_count = 0;
|
func##_count = 0;
|
||||||
# define EXPECT_EQ_POSIX(expected, actual) EXPECT_EQ(expected, actual)
|
# define EXPECT_EQ_POSIX(expected, actual)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
TEST(FileTest, OpenRetry) {
|
TEST(FileTest, OpenRetry) {
|
||||||
|
Reference in New Issue
Block a user