Fix test.

This commit is contained in:
Victor Zverovich 2014-05-03 18:36:17 -07:00
parent f4c5b37561
commit 527c4b312a

View File

@ -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());
} }