Author: mnordell
Date: Wed Oct 10 19:10:49 2012
New Revision: 57529
URL:
http://svn.reactos.org/svn/reactos?rev=57529&view=rev
Log:
Test for MultiByteToWideChar added. Still needs alot fleshing out.
Added:
trunk/rostests/apitests/kernel32/MultiByteToWideChar.c (with props)
Modified:
trunk/rostests/apitests/kernel32/CMakeLists.txt
trunk/rostests/apitests/kernel32/testlist.c
Modified: trunk/rostests/apitests/kernel32/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/kernel32/CMakeLi…
==============================================================================
--- trunk/rostests/apitests/kernel32/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/rostests/apitests/kernel32/CMakeLists.txt [iso-8859-1] Wed Oct 10 19:10:49 2012
@@ -6,6 +6,7 @@
GetDriveType.c
GetModuleFileName.c
lstrcpynW.c
+ MultiByteToWideChar.c
SetCurrentDirectory.c
SetUnhandledExceptionFilter.c
testlist.c)
Added: trunk/rostests/apitests/kernel32/MultiByteToWideChar.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/kernel32/MultiBy…
==============================================================================
--- trunk/rostests/apitests/kernel32/MultiByteToWideChar.c (added)
+++ trunk/rostests/apitests/kernel32/MultiByteToWideChar.c [iso-8859-1] Wed Oct 10
19:10:49 2012
@@ -1,0 +1,22 @@
+/*
+ * PROJECT: ReactOS api tests
+ * LICENSE: GPLv2+ - See COPYING in the top level directory
+ * PURPOSE: Test for MultiByteToWideChar
+ * PROGRAMMER: Mike "tamlin" Nordell
+ */
+
+#include <windows.h>
+#include <stdio.h>
+#include <wine/test.h>
+
+
+START_TEST(MultiByteToWideChar)
+{
+ int ret;
+
+ ret = MultiByteToWideChar(CP_UTF8, 0, "a", sizeof("a"), 0, 0);
+ ok(ret == 2, "ret should be 2, is %d\n", ret);
+
+ ret = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, "a",
sizeof("a"), 0, 0);
+ ok(ret == 2, "ret should be 2, is %d\n", ret);
+}
Propchange: trunk/rostests/apitests/kernel32/MultiByteToWideChar.c
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/rostests/apitests/kernel32/testlist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/kernel32/testlis…
==============================================================================
--- trunk/rostests/apitests/kernel32/testlist.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/kernel32/testlist.c [iso-8859-1] Wed Oct 10 19:10:49 2012
@@ -9,6 +9,7 @@
extern void func_GetDriveType(void);
extern void func_GetModuleFileName(void);
extern void func_lstrcpynW(void);
+extern void func_MultiByteToWideChar(void);
extern void func_SetCurrentDirectory(void);
extern void func_SetUnhandledExceptionFilter(void);
@@ -18,6 +19,7 @@
{ "GetDriveType", func_GetDriveType },
{ "GetModuleFileName", func_GetModuleFileName },
{ "lstrcpynW", func_lstrcpynW },
+ { "MultiByteToWideChar", func_MultiByteToWideChar },
{ "SetCurrentDirectory", func_SetCurrentDirectory },
{ "SetUnhandledExceptionFilter", func_SetUnhandledExceptionFilter},