[ROSTESTS]
authorSylvain Petreolle <spetreolle@yahoo.fr>
Sun, 28 Feb 2016 20:56:00 +0000 (20:56 +0000)
committerSylvain Petreolle <spetreolle@yahoo.fr>
Sun, 28 Feb 2016 20:56:00 +0000 (20:56 +0000)
Handle generated tests on all architectures.
Update i386 files.

The kernel32 generated remains disabled,
Wine's definition of COMMCONFIG differs from our/MSDN definition.
Commented out nonexisting LPEXCEPTION_RECORD.

svn path=/trunk/; revision=70802

19 files changed:
rostests/winetests/gdi32/CMakeLists.txt
rostests/winetests/gdi32/generated_i386.c [moved from rostests/winetests/gdi32/generated.c with 100% similarity]
rostests/winetests/kernel32/CMakeLists.txt
rostests/winetests/kernel32/generated_i386.c [moved from rostests/winetests/kernel32/generated.c with 99% similarity]
rostests/winetests/ntdll/CMakeLists.txt
rostests/winetests/ntdll/generated_i386.c [moved from rostests/winetests/ntdll/generated.c with 100% similarity]
rostests/winetests/rpcrt4/CMakeLists.txt
rostests/winetests/rpcrt4/generated_i386.c [moved from rostests/winetests/rpcrt4/generated.c with 99% similarity]
rostests/winetests/shell32/CMakeLists.txt
rostests/winetests/shell32/generated_i386.c [moved from rostests/winetests/shell32/generated.c with 100% similarity]
rostests/winetests/shlwapi/CMakeLists.txt
rostests/winetests/shlwapi/generated_i386.c [moved from rostests/winetests/shlwapi/generated.c with 100% similarity]
rostests/winetests/urlmon/CMakeLists.txt
rostests/winetests/urlmon/generated_i386.c [moved from rostests/winetests/urlmon/generated.c with 100% similarity]
rostests/winetests/user32/CMakeLists.txt
rostests/winetests/user32/generated_i386.c [moved from rostests/winetests/user32/generated.c with 100% similarity]
rostests/winetests/user32/testlist.c
rostests/winetests/wininet/CMakeLists.txt
rostests/winetests/wininet/generated_i386.c [moved from rostests/winetests/wininet/generated.c with 100% similarity]

index 033f658..ec6bf16 100644 (file)
@@ -9,6 +9,7 @@ list(APPEND SOURCE
     dib.c
     font.c
     gdiobj.c
+    generated_${ARCH}.c
     icm.c
     mapping.c
     metafile.c
@@ -17,10 +18,6 @@ list(APPEND SOURCE
     pen.c
     testlist.c)
 
-if(ARCH STREQUAL "i386")
-    list(APPEND SOURCE generated.c)
-endif()
-
 add_executable(gdi32_winetest ${SOURCE} resource.rc)
 set_module_type(gdi32_winetest win32cui)
 add_importlibs(gdi32_winetest gdi32 user32 advapi32 msvcrt kernel32)
index 53fd02c..5e14986 100644 (file)
@@ -17,6 +17,7 @@ list(APPEND SOURCE
     fiber.c
     file.c
     format_msg.c
+    #generated_${ARCH}.c
     heap.c
     loader.c
     locale.c
@@ -37,10 +38,6 @@ list(APPEND SOURCE
     volume.c
     testlist.c)
 
-#if(ARCH STREQUAL "i386")
-#    list(APPEND SOURCE generated.c)
-#endif()
-
 add_executable(kernel32_winetest ${SOURCE} resource.rc)
 
 if(NOT MSVC)
similarity index 99%
rename from rostests/winetests/kernel32/generated.c
rename to rostests/winetests/kernel32/generated_i386.c
index 36053b8..3a10070 100644 (file)
@@ -989,12 +989,12 @@ static void test_pack_LPEXCEPTION_POINTERS(void)
     TEST_TYPE_ALIGN  (LPEXCEPTION_POINTERS, 8)
 }
 
-static void test_pack_LPEXCEPTION_RECORD(void)
-{
-    /* LPEXCEPTION_RECORD */
-    TEST_TYPE_SIZE   (LPEXCEPTION_RECORD, 8)
-    TEST_TYPE_ALIGN  (LPEXCEPTION_RECORD, 8)
-}
+//static void test_pack_LPEXCEPTION_RECORD(void)
+//{
+//    /* LPEXCEPTION_RECORD */
+//    TEST_TYPE_SIZE   (LPEXCEPTION_RECORD, 8)
+//    TEST_TYPE_ALIGN  (LPEXCEPTION_RECORD, 8)
+//}
 
 static void test_pack_LPFIBER_START_ROUTINE(void)
 {
@@ -2846,12 +2846,12 @@ static void test_pack_LPEXCEPTION_POINTERS(void)
     TEST_TYPE_ALIGN  (LPEXCEPTION_POINTERS, 4)
 }
 
-static void test_pack_LPEXCEPTION_RECORD(void)
-{
-    /* LPEXCEPTION_RECORD */
-    TEST_TYPE_SIZE   (LPEXCEPTION_RECORD, 4)
-    TEST_TYPE_ALIGN  (LPEXCEPTION_RECORD, 4)
-}
+//static void test_pack_LPEXCEPTION_RECORD(void)
+//{
+//    /* LPEXCEPTION_RECORD */
+//    TEST_TYPE_SIZE   (LPEXCEPTION_RECORD, 4)
+//    TEST_TYPE_ALIGN  (LPEXCEPTION_RECORD, 4)
+//}
 
 static void test_pack_LPFIBER_START_ROUTINE(void)
 {
index 1c891d3..c786e38 100644 (file)
@@ -11,6 +11,7 @@ list(APPEND SOURCE
     error.c
     exception.c
     file.c
+    generated_${ARCH}.c
     info.c
     large_int.c
     om.c
@@ -25,10 +26,6 @@ list(APPEND SOURCE
     time.c
     testlist.c)
 
-if(ARCH STREQUAL "i386")
-    list(APPEND SOURCE generated.c)
-endif()
-
 add_executable(ntdll_winetest ${SOURCE})
 set_module_type(ntdll_winetest win32cui)
 add_importlibs(ntdll_winetest user32 msvcrt kernel32 ntdll)
index f2b1144..e2e971f 100644 (file)
@@ -10,7 +10,7 @@ unset(IDL_FLAGS)
 
 list(APPEND SOURCE
     cstub.c
-    generated.c
+    generated_${ARCH}.c
     ndr_marshall.c
     rpc.c
     rpc_async.c
similarity index 99%
rename from rostests/winetests/rpcrt4/generated.c
rename to rostests/winetests/rpcrt4/generated_i386.c
index 4b9d16c..7eb8faa 100644 (file)
@@ -14,6 +14,7 @@
 #include <stdarg.h>
 #include "windef.h"
 #include "winbase.h"
+#include "ole2.h"
 #include "rpc.h"
 #include "rpcndr.h"
 #include "rpcproxy.h"
index e9009fc..16b6294 100644 (file)
@@ -7,6 +7,7 @@ list(APPEND SOURCE
     autocomplete.c
     brsfolder.c
     ebrowser.c
+    generated_${ARCH}.c
     progman_dde.c
     recyclebin.c
     shelldispatch.c
@@ -23,10 +24,6 @@ list(APPEND SOURCE
     testlist.c
     rsrc.rc)
 
-if(ARCH STREQUAL "i386")
-    list(APPEND SOURCE generated.c)
-endif()
-
 add_executable(shell32_winetest ${SOURCE})
 target_link_libraries(shell32_winetest uuid)
 set_module_type(shell32_winetest win32cui)
index 400cba1..8fdeee2 100644 (file)
@@ -5,7 +5,7 @@ list(APPEND SOURCE
     assoc.c
     clist.c
     clsid.c
-    generated.c
+    generated_${ARCH}.c
     istream.c
     ordinal.c
     path.c
index b7773c8..8d6c43e 100644 (file)
@@ -2,6 +2,7 @@
 add_definitions(-DUSE_WINE_TODOS)
 
 list(APPEND SOURCE
+    generated_${ARCH}.c
     misc.c
     protocol.c
     sec_mgr.c
@@ -10,10 +11,6 @@ list(APPEND SOURCE
     url.c
     testlist.c)
 
-if(ARCH STREQUAL "i386")
-    list(APPEND SOURCE generated.c)
-endif()
-
 add_executable(urlmon_winetest ${SOURCE})
 target_link_libraries(urlmon_winetest uuid)
 set_module_type(urlmon_winetest win32cui)
index 15f1c1e..cb133a0 100644 (file)
@@ -8,7 +8,8 @@ list(APPEND SOURCE
     dce.c
     dde.c
     dialog.c
-    edit.c
+    edit.c    
+    generated_${ARCH}.c
     input.c
     listbox.c
     menu.c
@@ -25,10 +26,6 @@ list(APPEND SOURCE
     wsprintf.c
     testlist.c)
 
-if(ARCH STREQUAL "i386")
-    list(APPEND SOURCE generated.c)
-endif()
-
 add_executable(user32_winetest ${SOURCE} resource.rc)
 # some tests need to be run from an app compiled as GUI
 set_module_type(user32_winetest win32gui)
index f35ee62..3923a38 100644 (file)
@@ -12,7 +12,7 @@ extern void func_dce(void);
 extern void func_dde(void);
 extern void func_dialog(void);
 extern void func_edit(void);
-extern void func_generated(void);
+//extern void func_generated(void);
 extern void func_input(void);
 extern void func_listbox(void);
 extern void func_menu(void);
@@ -53,7 +53,7 @@ const struct test winetest_testlist[] =
     { "dde", func_dde },
     { "dialog", func_dialog },
     { "edit", func_edit },
-    { "generated", func_generated },
+    //{ "generated", func_generated },
     { "input", func_input },
     { "listbox", func_listbox },
     { "menu", func_menu },
index 444f60b..7756a0f 100644 (file)
@@ -3,16 +3,13 @@ add_definitions(-DUSE_WINE_TODOS)
 
 list(APPEND SOURCE
     ftp.c
+    generated_${ARCH}.c
     http.c
     internet.c
     url.c
     urlcache.c
     testlist.c)
 
-if(ARCH STREQUAL "i386")
-    list(APPEND SOURCE generated.c)
-endif()
-
 add_executable(wininet_winetest ${SOURCE})
 set_module_type(wininet_winetest win32cui)
 add_importlibs(wininet_winetest wininet crypt32 ws2_32 user32 advapi32 msvcrt kernel32)