Improve the pipe API
This commit is contained in:
+2
-3
@@ -517,9 +517,8 @@ TEST(printf_test, examples) {
|
||||
}
|
||||
|
||||
TEST(printf_test, printf_error) {
|
||||
fmt::file read_end, write_end;
|
||||
fmt::file::pipe(read_end, write_end);
|
||||
int result = fmt::fprintf(read_end.fdopen("r").get(), "test");
|
||||
auto pipe = fmt::pipe();
|
||||
int result = fmt::fprintf(pipe.read_end.fdopen("r").get(), "test");
|
||||
EXPECT_LT(result, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user