Louis. Lenders : msvcrt: Add simple test for _strdup(0).
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jun 21 08:02:20 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 6f1ab505ace36247b855c3b2d2f1c94c781f166e
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=6f1ab505ace36247b855c3b2d2f1c94c781f166e
Author: Louis. Lenders <xerox_xerox2000 at yahoo.co.uk>
Date: Wed Jun 21 10:03:26 2006 +0100
msvcrt: Add simple test for _strdup(0).
---
dlls/msvcrt/tests/string.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/dlls/msvcrt/tests/string.c b/dlls/msvcrt/tests/string.c
index 9ed4e3b..c0857a2 100644
--- a/dlls/msvcrt/tests/string.c
+++ b/dlls/msvcrt/tests/string.c
@@ -99,6 +99,14 @@ static void test_mbsspn( void)
ok( ret==0, "_mbsspn returns %d should be 0\n", ret);
}
+static void test_strdup(void)
+{
+ char *str;
+ str = _strdup( 0 );
+ ok( str == 0, "strdup returns %s should be 0\n", str);
+ free( str );
+}
+
START_TEST(string)
{
void *mem;
@@ -125,4 +133,6 @@ START_TEST(string)
test_ismbblead();
/* test _mbsspn */
test_mbsspn();
+ /* test _strdup */
+ test_strdup();
}
More information about the wine-cvs
mailing list