Commit 6f1ab505 authored by Louis. Lenders's avatar Louis. Lenders Committed by Alexandre Julliard

msvcrt: Add simple test for _strdup(0).

parent 6d4a811c
...@@ -99,6 +99,14 @@ static void test_mbsspn( void) ...@@ -99,6 +99,14 @@ static void test_mbsspn( void)
ok( ret==0, "_mbsspn returns %d should be 0\n", ret); 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) START_TEST(string)
{ {
void *mem; void *mem;
...@@ -125,4 +133,6 @@ START_TEST(string) ...@@ -125,4 +133,6 @@ START_TEST(string)
test_ismbblead(); test_ismbblead();
/* test _mbsspn */ /* test _mbsspn */
test_mbsspn(); test_mbsspn();
/* test _strdup */
test_strdup();
} }
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