Jeff Zaroyko : msvcrt/tests: Test _dup2 for failure when second arg is negative.
Alexandre Julliard
julliard at winehq.org
Thu Jan 14 11:33:35 CST 2010
Module: wine
Branch: master
Commit: f4e5ab4892b91e5937069ebae45f5f717cfe2c9e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f4e5ab4892b91e5937069ebae45f5f717cfe2c9e
Author: Jeff Zaroyko <jeffz at jeffz.name>
Date: Tue Jan 12 14:13:10 2010 +1100
msvcrt/tests: Test _dup2 for failure when second arg is negative.
---
dlls/msvcrt/tests/file.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/msvcrt/tests/file.c b/dlls/msvcrt/tests/file.c
index da3d16c..27d64bd 100644
--- a/dlls/msvcrt/tests/file.c
+++ b/dlls/msvcrt/tests/file.c
@@ -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();
More information about the wine-cvs
mailing list