Commit 527c4b31 authored by Victor Zverovich's avatar Victor Zverovich

Fix test.

parent f4c5b375
......@@ -374,7 +374,7 @@ TEST(FileTest, Dup2) {
TEST(FileTest, Dup2Error) {
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());
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment