Commit 9e767992 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

msvcrt/tests: Add tests for wcsdup.

parent 1cade77f
......@@ -649,6 +649,15 @@ static void test_strdup(void)
ok(errno == 0xdeadbeef, "errno is %d, expected 0xdeadbeef\n", errno);
}
static void test_wcsdup(void)
{
WCHAR *str;
errno = 0xdeadbeef;
str = wcsdup(0);
ok(str == 0, "wcsdup returned %s, expected NULL\n", wine_dbgstr_w(str));
ok(errno == 0xdeadbeef, "errno is %d, expected 0xdeadbeef\n", errno);
}
static void test_strcmp(void)
{
int ret = p_strcmp( "abc", "abcd" );
......@@ -4705,6 +4714,7 @@ START_TEST(string)
test_mbsspn();
test_mbsspnp();
test_strdup();
test_wcsdup();
test_strcmp();
test_strcpy_s();
test_memcpy_s();
......
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