Bug
This commit is contained in:
parent
bca8dea256
commit
e8dcc3ccd1
|
@ -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); \
|
||||||
|
|
|
@ -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); \
|
||||||
|
|
|
@ -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); \
|
||||||
|
|
|
@ -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); \
|
||||||
|
|
Loading…
Reference in New Issue