This commit is contained in:
Timo Schmidt 2023-05-03 22:33:59 +02:00
parent bca8dea256
commit e8dcc3ccd1
4 changed files with 7 additions and 7 deletions

View File

@ -39,7 +39,7 @@ static int expect_counter = 0;
dup2(old_stderr_fd, 2); \ dup2(old_stderr_fd, 2); \
} while(0) } while(0)
#define expect(inp, func, ...) \ #define expect(func, ...) \
do { \ do { \
int old_stdout_fd = dup(1); \ int old_stdout_fd = dup(1); \
dup2(2, 1); \ dup2(2, 1); \

View File

@ -39,7 +39,7 @@ static int expect_counter = 0;
dup2(old_stderr_fd, 2); \ dup2(old_stderr_fd, 2); \
} while(0) } while(0)
#define expect(inp, func, ...) \ #define expect(func, ...) \
do { \ do { \
int old_stdout_fd = dup(1); \ int old_stdout_fd = dup(1); \
dup2(2, 1); \ dup2(2, 1); \

View File

@ -39,7 +39,7 @@ static int expect_counter = 0;
dup2(old_stderr_fd, 2); \ dup2(old_stderr_fd, 2); \
} while(0) } while(0)
#define expect(inp, func, ...) \ #define expect(func, ...) \
do { \ do { \
int old_stdout_fd = dup(1); \ int old_stdout_fd = dup(1); \
dup2(2, 1); \ dup2(2, 1); \

View File

@ -39,7 +39,7 @@ static int expect_counter = 0;
dup2(old_stderr_fd, 2); \ dup2(old_stderr_fd, 2); \
} while(0) } while(0)
#define expect(inp, func, ...) \ #define expect(func, ...) \
do { \ do { \
int old_stdout_fd = dup(1); \ int old_stdout_fd = dup(1); \
dup2(2, 1); \ dup2(2, 1); \