mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Try not to die.
This commit is contained in:
parent
3e55391ea8
commit
590490f35f
@ -333,9 +333,10 @@ TEST(FileTest, Read) {
|
||||
}
|
||||
|
||||
TEST(FileTest, ReadError) {
|
||||
File f;
|
||||
File read_end, write_end;
|
||||
File::pipe(read_end, write_end);
|
||||
char buf;
|
||||
EXPECT_SYSTEM_ERROR_OR_DEATH(f.read(&buf, 1), EBADF, "cannot read from file");
|
||||
EXPECT_SYSTEM_ERROR(write_end.read(&buf, 1), EBADF, "cannot read from file");
|
||||
}
|
||||
|
||||
TEST(FileTest, Write) {
|
||||
|
Loading…
Reference in New Issue
Block a user