mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 19:24:48 +02:00
Fix test.
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user