Commit d4ef782d authored by Alexandre Julliard's avatar Alexandre Julliard

makefiles: Build all tests with msvcrt.

parent 629f2e10
......@@ -189,14 +189,14 @@ static void delnode_test(void)
ok (hr == S_OK, "DelNode failed deleting a directory containing multiple files\n");
}
static void append_str(char **str, const char *data, ...)
static void WINAPIV append_str(char **str, const char *data, ...)
{
va_list valist;
__ms_va_list valist;
va_start(valist, data);
__ms_va_start(valist, data);
vsprintf(*str, data, valist);
*str += strlen(*str);
va_end(valist);
__ms_va_end(valist);
}
static void create_inf_file(void)
......
......@@ -42,13 +42,13 @@ static BOOL (WINAPI *pIsDebuggerPresent)(void);
static LONG child_failures;
static void WINETEST_PRINTF_ATTR(2, 3) test_child_ok(int condition, const char *msg, ...)
static void WINAPIV WINETEST_PRINTF_ATTR(2, 3) test_child_ok(int condition, const char *msg, ...)
{
va_list valist;
__ms_va_list valist;
va_start(valist, msg);
__ms_va_start(valist, msg);
winetest_vok(condition, msg, valist);
va_end(valist);
__ms_va_end(valist);
if (!condition) ++child_failures;
}
......
......@@ -281,15 +281,15 @@ static void get_file_name(char* buf)
* static void childPrintf
*
*/
static void WINETEST_PRINTF_ATTR(2,3) childPrintf(HANDLE h, const char* fmt, ...)
static void WINAPIV WINETEST_PRINTF_ATTR(2,3) childPrintf(HANDLE h, const char* fmt, ...)
{
va_list valist;
__ms_va_list valist;
char buffer[1024+4*MAX_LISTED_ENV_VAR];
DWORD w;
va_start(valist, fmt);
__ms_va_start(valist, fmt);
vsprintf(buffer, fmt, valist);
va_end(valist);
__ms_va_end(valist);
WriteFile(h, buffer, strlen(buffer), &w, NULL);
}
......
......@@ -34,15 +34,15 @@
static int todo_level, todo_do_loop;
static void ok_(MSIHANDLE hinst, int todo, const char *file, int line, int condition, const char *msg, ...)
static void WINAPIV ok_(MSIHANDLE hinst, int todo, const char *file, int line, int condition, const char *msg, ...)
{
static char buffer[2000];
MSIHANDLE record;
va_list valist;
__ms_va_list valist;
va_start(valist, msg);
__ms_va_start(valist, msg);
vsprintf(buffer, msg, valist);
va_end(valist);
__ms_va_end(valist);
record = MsiCreateRecord(5);
MsiRecordSetInteger(record, 1, todo);
......
......@@ -36,15 +36,15 @@ static const char *mstfile = "winetst-db.mst";
static const WCHAR msifileW[] = {'w','i','n','e','t','e','s','t','-','d','b','.','m','s','i',0};
static const WCHAR msifile2W[] = {'w','i','n','e','t','s','t','2','-','d','b','.','m','s','i',0};
static void check_record_(int line, MSIHANDLE rec, UINT count, ...)
static void WINAPIV check_record_(int line, MSIHANDLE rec, UINT count, ...)
{
va_list args;
__ms_va_list args;
UINT i;
ok_(__FILE__, line)(count == MsiRecordGetFieldCount(rec),
"expected %u fields, got %u\n", count, MsiRecordGetFieldCount(rec));
va_start(args, count);
__ms_va_start(args, count);
for (i = 1; i <= count; ++i)
{
......@@ -57,7 +57,7 @@ static void check_record_(int line, MSIHANDLE rec, UINT count, ...)
"field %u: expected \"%s\", got \"%s\"\n", i, expect, buffer);
}
va_end(args);
__ms_va_end(args);
}
#define check_record(rec, ...) check_record_(__LINE__, rec, __VA_ARGS__)
......
TESTDLL = msvcirt.dll
APPMODE = -mno-cygwin
C_SRCS = msvcirt.c
TESTDLL = msvcp100.dll
APPMODE = -mno-cygwin
C_SRCS = \
misc.c \
......
TESTDLL = msvcp110.dll
APPMODE = -mno-cygwin
C_SRCS = \
msvcp110.c
TESTDLL = msvcp120.dll
APPMODE = -mno-cygwin
C_SRCS = \
msvcp120.c
TESTDLL = msvcp140.dll
APPMODE = -mno-cygwin
C_SRCS = \
msvcp140.c
TESTDLL = msvcp60.dll
APPMODE = -mno-cygwin
C_SRCS = \
ios.c \
......
TESTDLL = msvcp90.dll
APPMODE = -mno-cygwin
C_SRCS = \
ios.c \
......
TESTDLL = msvcr100.dll
APPMODE = -mno-cygwin
C_SRCS = \
msvcr100.c
TESTDLL = msvcr110.dll
APPMODE = -mno-cygwin
C_SRCS = \
msvcr110.c
TESTDLL = msvcr120.dll
APPMODE = -mno-cygwin
C_SRCS = \
msvcr120.c
TESTDLL = msvcr90.dll
APPMODE = -mno-cygwin
C_SRCS = \
msvcr90.c
......
TESTDLL = msvcrt.dll
APPMODE = -mno-cygwin
EXTRAINCL = -I$(srcdir)/..
IMPORTS = advapi32
......
TESTDLL = msvcrtd.dll
APPMODE = -mno-cygwin
C_SRCS = \
debug.c
......@@ -117,15 +117,15 @@ static char* decodeA(const char* str)
return ptr;
}
static void WINETEST_PRINTF_ATTR(2,3) childPrintf(HANDLE h, const char* fmt, ...)
static void WINAPIV WINETEST_PRINTF_ATTR(2,3) childPrintf(HANDLE h, const char* fmt, ...)
{
va_list valist;
__ms_va_list valist;
char buffer[1024];
DWORD w;
va_start(valist, fmt);
__ms_va_start(valist, fmt);
vsprintf(buffer, fmt, valist);
va_end(valist);
__ms_va_end(valist);
WriteFile(h, buffer, strlen(buffer), &w, NULL);
}
......@@ -351,16 +351,16 @@ static void dump_child_(const char* file, int line)
***/
static char shell_call[2048];
static void WINETEST_PRINTF_ATTR(2,3) _okShell(int condition, const char *msg, ...)
static void WINAPIV WINETEST_PRINTF_ATTR(2,3) _okShell(int condition, const char *msg, ...)
{
va_list valist;
__ms_va_list valist;
char buffer[2048];
strcpy(buffer, shell_call);
strcat(buffer, " ");
va_start(valist, msg);
__ms_va_start(valist, msg);
vsprintf(buffer+strlen(buffer), msg, valist);
va_end(valist);
__ms_va_end(valist);
winetest_ok(condition, "%s", buffer);
}
#define okShell_(file, line) (winetest_set_location(file, line), 0) ? (void)0 : _okShell
......
TESTDLL = ucrtbase.dll
APPMODE = -mno-cygwin
C_SRCS = \
cpp.c \
......
......@@ -56,14 +56,14 @@ static inline void service_event(const char *event)
send_msg("EVENT", event);
}
static void service_ok(int cnd, const char *msg, ...)
static void WINAPIV service_ok(int cnd, const char *msg, ...)
{
va_list valist;
char buf[512];
__ms_va_list valist;
char buf[512];
va_start(valist, msg);
__ms_va_start(valist, msg);
vsprintf(buf, msg, valist);
va_end(valist);
__ms_va_end(valist);
send_msg(cnd ? "OK" : "FAIL", buf);
}
......
......@@ -4029,6 +4029,7 @@ static void load_sources( struct makefile *make )
make->extra_targets = get_expanded_make_var_array( make, "EXTRA_TARGETS" );
if (make->module && strendswith( make->module, ".a" )) make->staticlib = make->module;
if (make->testdll) strarray_add( &make->extradllflags, "-mno-cygwin" );
strarray_addall( &make->extradllflags, get_expanded_make_var_array( make, "APPMODE" ));
make->disabled = make->base_dir && strarray_exists( &disabled_dirs, make->base_dir );
......
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