mirror of
https://github.com/shadps4-emu/ext-fmt.git
synced 2024-11-24 10:19:46 +00:00
Fix test.
This commit is contained in:
parent
527c4b312a
commit
3e55391ea8
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user