Fix test.
This commit is contained in:
parent
f4c5b37561
commit
527c4b312a
@ -374,7 +374,7 @@ TEST(FileTest, Dup2) {
|
|||||||
|
|
||||||
TEST(FileTest, Dup2Error) {
|
TEST(FileTest, Dup2Error) {
|
||||||
File f(".travis.yml", File::RDONLY);
|
File f(".travis.yml", File::RDONLY);
|
||||||
EXPECT_SYSTEM_ERROR(f.dup2(-1), EBADF,
|
EXPECT_SYSTEM_ERROR_OR_DEATH(f.dup2(-1), EBADF,
|
||||||
fmt::Format("cannot duplicate file descriptor {} to -1") << f.descriptor());
|
fmt::Format("cannot duplicate file descriptor {} to -1") << f.descriptor());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user