Commit f4e5ab48 authored by Jeff Zaroyko's avatar Jeff Zaroyko Committed by Alexandre Julliard

msvcrt/tests: Test _dup2 for failure when second arg is negative.

parent 6a5e443f
......@@ -1361,6 +1361,11 @@ static void test_unlink(void)
rmdir("test_unlink");
}
void test_dup2(void)
{
todo_wine ok(-1 == _dup2(0, -1), "expected _dup2 to fail when second arg is negative\n" );
}
START_TEST(file)
{
int arg_c;
......@@ -1381,6 +1386,7 @@ START_TEST(file)
ok(0, "invalid argument '%s'\n", arg_v[2]);
return;
}
test_dup2();
test_file_inherit(arg_v[0]);
test_file_write_read();
test_chsize();
......
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