diff options
Diffstat (limited to 'tests/testlib.c')
-rw-r--r-- | tests/testlib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/testlib.c b/tests/testlib.c index e69aa39..7cab0b9 100644 --- a/tests/testlib.c +++ b/tests/testlib.c @@ -139,6 +139,7 @@ static int setup_test_output(libusbx_testlib_ctx * ctx) } ctx->output_file = fdopen(ctx->old_stdout, "w"); if (!ctx->output_file) { + ctx->output_file = stdout; cleanup_test_output(ctx); printf("Failed to open FILE for output handle: %d\n", errno); return 1; |