mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-29 18:27:40 +02:00
Fix test.
This commit is contained in:
@ -391,8 +391,12 @@ TEST(FileTest, Dup2NoExcept) {
|
||||
TEST(FileTest, Dup2NoExceptError) {
|
||||
File f(".travis.yml", File::RDONLY);
|
||||
ErrorCode ec;
|
||||
#ifndef _WIN32
|
||||
f.dup2(-1, ec);
|
||||
EXPECT_EQ(EBADF, ec.get());
|
||||
#else
|
||||
EXPECT_DEATH(f.dup2(-1, ec), "");
|
||||
#endif
|
||||
}
|
||||
|
||||
TEST(FileTest, Pipe) {
|
||||
|
Reference in New Issue
Block a user