Commit 3e55391e authored by Victor Zverovich's avatar Victor Zverovich

Fix test.

parent 527c4b31
......@@ -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) {
......
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