mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 08:17:09 +08:00
[APITESTS] Make sure test functions are name correctly
With automatic test list creation, the function name (from START_TEST(name)) will also be the test name and some of those conflict with wine tests.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
#include "precomp.h"
|
||||
|
||||
START_TEST(eventlog)
|
||||
START_TEST(eventlog_supp)
|
||||
{
|
||||
static struct
|
||||
{
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
extern void func_CreateService(void);
|
||||
extern void func_DuplicateTokenEx(void);
|
||||
extern void func_eventlog(void);
|
||||
extern void func_eventlog_supp(void);
|
||||
extern void func_Hash(void);
|
||||
extern void func_HKEY_CLASSES_ROOT(void);
|
||||
extern void func_IsTextUnicode(void);
|
||||
@@ -26,7 +26,7 @@ const struct test winetest_testlist[] =
|
||||
{
|
||||
{ "CreateService", func_CreateService },
|
||||
{ "DuplicateTokenEx", func_DuplicateTokenEx },
|
||||
{ "eventlog_supp", func_eventlog },
|
||||
{ "eventlog_supp", func_eventlog_supp },
|
||||
{ "Hash", func_Hash },
|
||||
{ "HKEY_CLASSES_ROOT", func_HKEY_CLASSES_ROOT },
|
||||
{ "IsTextUnicode" , func_IsTextUnicode },
|
||||
|
||||
@@ -923,7 +923,7 @@ void Test_MessagesThemed()
|
||||
DestroyWindow(hWnd2);
|
||||
}
|
||||
|
||||
START_TEST(button)
|
||||
START_TEST(buttonv6)
|
||||
{
|
||||
LoadLibraryW(L"comctl32.dll"); /* same as statically linking to comctl32 and doing InitCommonControls */
|
||||
Test_TextMargin();
|
||||
|
||||
@@ -147,7 +147,7 @@ static void test_ApplyButtonDisabled()
|
||||
}
|
||||
|
||||
|
||||
START_TEST(propsheet)
|
||||
START_TEST(propsheetv6)
|
||||
{
|
||||
HMODULE hComCtl32;
|
||||
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
#define STANDALONE
|
||||
#include <apitest.h>
|
||||
|
||||
extern void func_button(void);
|
||||
extern void func_buttonv6(void);
|
||||
extern void func_ImageListApi(void);
|
||||
extern void func_propsheet(void);
|
||||
extern void func_toolbar(void);
|
||||
extern void func_tooltip(void);
|
||||
extern void func_propsheetv6(void);
|
||||
extern void func_toolbarv6(void);
|
||||
extern void func_tooltipv6(void);
|
||||
|
||||
const struct test winetest_testlist[] =
|
||||
{
|
||||
{ "buttonv6", func_button },
|
||||
{ "buttonv6", func_buttonv6 },
|
||||
{ "ImageListApi", func_ImageListApi },
|
||||
{ "propsheetv6", func_propsheet },
|
||||
{ "toolbarv6", func_toolbar },
|
||||
{ "tooltipv6", func_tooltip },
|
||||
{ "propsheetv6", func_propsheetv6 },
|
||||
{ "toolbarv6", func_toolbarv6 },
|
||||
{ "tooltipv6", func_tooltipv6 },
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
@@ -235,7 +235,7 @@ void TestV5VersionMessage()
|
||||
DestroyWindow(hwnd);
|
||||
}
|
||||
|
||||
START_TEST(toolbar)
|
||||
START_TEST(toolbarv6)
|
||||
{
|
||||
HANDLE hV5ActCtx;
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ Cleanup:
|
||||
HeapFree(hAppHeap, 0, lpData);
|
||||
}
|
||||
|
||||
START_TEST(tooltip)
|
||||
START_TEST(tooltipv6)
|
||||
{
|
||||
TestDllProductVersion();
|
||||
}
|
||||
|
||||
@@ -3020,7 +3020,11 @@ void Test_nested_from_except(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
START_TEST(pseh_cpp)
|
||||
#else
|
||||
START_TEST(pseh)
|
||||
#endif
|
||||
{
|
||||
#ifdef _M_IX86
|
||||
Test_structs_no_seh();
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
|
||||
#define func_pseh func_pseh_cpp
|
||||
#include "pseh.c"
|
||||
|
||||
@@ -48,7 +48,11 @@ static BOOL Init(void)
|
||||
|
||||
/* NOTE: This test is not only used for all the CRT apitests, but also for
|
||||
* user32's wsprintf. Make sure to test them all */
|
||||
#ifdef TEST_USER32
|
||||
START_TEST(wsprintfApi)
|
||||
#else
|
||||
START_TEST(sprintf)
|
||||
#endif
|
||||
{
|
||||
int Length;
|
||||
CHAR Buffer[128];
|
||||
|
||||
@@ -74,7 +74,7 @@ StartTestCORE10188(VOID)
|
||||
ok(dInMsg == dOutMsg, "Transfer data failed\n");
|
||||
}
|
||||
|
||||
START_TEST(Mailslot)
|
||||
START_TEST(MailslotRead)
|
||||
{
|
||||
StartTestCORE10188();
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ extern void func_LoadLibraryExW(void);
|
||||
extern void func_LocaleNameToLCID(void);
|
||||
extern void func_lstrcpynW(void);
|
||||
extern void func_lstrlen(void);
|
||||
extern void func_Mailslot(void);
|
||||
extern void func_MailslotRead(void);
|
||||
extern void func_MultiByteToWideChar(void);
|
||||
extern void func_Pipes(void);
|
||||
extern void func_PrivMoveFileIdentityW(void);
|
||||
@@ -77,7 +77,7 @@ const struct test winetest_testlist[] =
|
||||
{ "LocaleNameToLCID", func_LocaleNameToLCID },
|
||||
{ "lstrcpynW", func_lstrcpynW },
|
||||
{ "lstrlen", func_lstrlen },
|
||||
{ "MailslotRead", func_Mailslot },
|
||||
{ "MailslotRead", func_MailslotRead },
|
||||
{ "MultiByteToWideChar", func_MultiByteToWideChar },
|
||||
{ "Pipes", func_Pipes },
|
||||
{ "PrivMoveFileIdentityW", func_PrivMoveFileIdentityW },
|
||||
|
||||
@@ -86,7 +86,7 @@ static void test_BadLetters(void)
|
||||
}
|
||||
}
|
||||
|
||||
START_TEST(isvalidname)
|
||||
START_TEST(NcIsValidConnectionName)
|
||||
{
|
||||
HMODULE hDll = LoadLibraryA("netshell.dll");
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#define STANDALONE
|
||||
#include <apitest.h>
|
||||
|
||||
extern void func_isvalidname(void);
|
||||
extern void func_NcIsValidConnectionName(void);
|
||||
|
||||
const struct test winetest_testlist[] =
|
||||
{
|
||||
{ "NcIsValidConnectionName", func_isvalidname },
|
||||
{ "NcIsValidConnectionName", func_NcIsValidConnectionName },
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
@@ -600,7 +600,7 @@ Test_RtlFindLongestRunClear(void)
|
||||
}
|
||||
|
||||
|
||||
START_TEST(RtlBitmap)
|
||||
START_TEST(RtlBitmapApi)
|
||||
{
|
||||
/* Windows 2003 has broken bitmap code that modifies the buffer */
|
||||
if (!IsWindowsVistaOrGreater() && !IsReactOS())
|
||||
|
||||
@@ -82,7 +82,7 @@ extern void func_NtSystemInformation(void);
|
||||
extern void func_NtUnloadDriver(void);
|
||||
extern void func_NtWriteFile(void);
|
||||
extern void func_RtlAllocateHeap(void);
|
||||
extern void func_RtlBitmap(void);
|
||||
extern void func_RtlBitmapApi(void);
|
||||
extern void func_RtlCaptureContext(void);
|
||||
extern void func_RtlComputePrivatizedDllName_U(void);
|
||||
extern void func_RtlCopyMappedMemory(void);
|
||||
@@ -218,7 +218,7 @@ const struct test winetest_testlist[] =
|
||||
{ "NtUnloadDriver", func_NtUnloadDriver },
|
||||
{ "NtWriteFile", func_NtWriteFile },
|
||||
{ "RtlAllocateHeap", func_RtlAllocateHeap },
|
||||
{ "RtlBitmapApi", func_RtlBitmap },
|
||||
{ "RtlBitmapApi", func_RtlBitmapApi },
|
||||
{ "RtlComputePrivatizedDllName_U", func_RtlComputePrivatizedDllName_U },
|
||||
{ "RtlCopyMappedMemory", func_RtlCopyMappedMemory },
|
||||
{ "RtlCriticalSection", func_RtlCriticalSection },
|
||||
|
||||
@@ -4841,7 +4841,7 @@ void test_WritePwrScheme(void)
|
||||
|
||||
}
|
||||
|
||||
void func_power(void)
|
||||
START_TEST(power)
|
||||
{
|
||||
if (1)
|
||||
skip("CallNtPowerInformation test is broken and fails on Windows\n");
|
||||
|
||||
@@ -27,7 +27,7 @@ do { \
|
||||
ok(ret == (exp), "Expected %s to be %d, was %d\n", wine_dbgstr_w((str)), (exp), ret); \
|
||||
} while (0)
|
||||
|
||||
START_TEST(isuncpath)
|
||||
START_TEST(PathIsUNC)
|
||||
{
|
||||
DO_TEST(TRUE, L"\\\\path1\\path2");
|
||||
DO_TEST(TRUE, L"\\\\path1");
|
||||
|
||||
@@ -27,7 +27,7 @@ do { \
|
||||
ok(ret == (exp), "Expected %s to be %d, was %d\n", wine_dbgstr_w((str)), (exp), ret); \
|
||||
} while (0)
|
||||
|
||||
START_TEST(isuncpathserver)
|
||||
START_TEST(PathIsUNCServer)
|
||||
{
|
||||
DO_TEST(TRUE, L"\\\\server");
|
||||
DO_TEST(TRUE, L"\\\\");
|
||||
|
||||
@@ -27,7 +27,7 @@ do { \
|
||||
ok(ret == (exp), "Expected %s to be %d, was %d\n", wine_dbgstr_w((str)), (exp), ret); \
|
||||
} while (0)
|
||||
|
||||
START_TEST(isuncpathservershare)
|
||||
START_TEST(PathIsUNCServerShare)
|
||||
{
|
||||
DO_TEST(TRUE, L"\\\\server\\share");
|
||||
DO_TEST(TRUE, L"\\\\reactos\\folder9");
|
||||
|
||||
@@ -8,9 +8,9 @@ extern void func_PathFindOnPath(void);
|
||||
extern void func_IShellFolderHelpers(void);
|
||||
extern void func_IsQSForward(void);
|
||||
extern void func_IStreamPidl(void);
|
||||
extern void func_isuncpath(void);
|
||||
extern void func_isuncpathserver(void);
|
||||
extern void func_isuncpathservershare(void);
|
||||
extern void func_PathIsUNC(void);
|
||||
extern void func_PathIsUNCServer(void);
|
||||
extern void func_PathIsUNCServerShare(void);
|
||||
extern void func_PathUnExpandEnvStrings(void);
|
||||
extern void func_PathUnExpandEnvStringsForUser(void);
|
||||
extern void func_SHAreIconsEqual(void);
|
||||
@@ -32,9 +32,9 @@ const struct test winetest_testlist[] =
|
||||
{ "IShellFolderHelpers", func_IShellFolderHelpers },
|
||||
{ "IsQSForward", func_IsQSForward },
|
||||
{ "IStreamPidl", func_IStreamPidl },
|
||||
{ "PathIsUNC", func_isuncpath },
|
||||
{ "PathIsUNCServer", func_isuncpathserver },
|
||||
{ "PathIsUNCServerShare", func_isuncpathservershare },
|
||||
{ "PathIsUNC", func_PathIsUNC },
|
||||
{ "PathIsUNCServer", func_PathIsUNCServer },
|
||||
{ "PathIsUNCServerShare", func_PathIsUNCServerShare },
|
||||
{ "PathUnExpandEnvStrings", func_PathUnExpandEnvStrings },
|
||||
{ "PathUnExpandEnvStringsForUser", func_PathUnExpandEnvStringsForUser },
|
||||
{ "SHAreIconsEqual", func_SHAreIconsEqual },
|
||||
|
||||
@@ -63,7 +63,7 @@ extern void func_TrackMouseEvent(void);
|
||||
extern void func_TrackPopupMenuEx(void);
|
||||
extern void func_VirtualKey(void);
|
||||
extern void func_WndProc(void);
|
||||
extern void func_wsprintf(void);
|
||||
extern void func_wsprintfApi(void);
|
||||
|
||||
const struct test winetest_testlist[] =
|
||||
{
|
||||
@@ -128,7 +128,7 @@ const struct test winetest_testlist[] =
|
||||
{ "TrackPopupMenuEx", func_TrackPopupMenuEx },
|
||||
{ "VirtualKey", func_VirtualKey },
|
||||
{ "WndProc", func_WndProc },
|
||||
{ "wsprintfApi", func_wsprintf },
|
||||
{ "wsprintfApi", func_wsprintfApi },
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user