55#define initterm_test(start, end, expected) \
57 p_initterm(start, end); \
58 ok(expected == callbacked,"_initterm: callbacks count mismatch: got %i, expected %i\n", callbacked, expected);
68 for (
i = 0;
i < 4;
i++)
89 unsigned int winver, winmajor, winminor, osver, osplatform;
91 if( !( pp_winmajor && pp_winminor && pp_winver)) {
92 win_skip(
"_winver variables are not available\n");
96 winminor = *pp_winminor;
97 winmajor = *pp_winmajor;
104 "Wrong value for _winver %02x expected %02lx\n",
106 if( !pp_osver || !pp_osplatform ) {
107 win_skip(
"_osver variables are not available\n");
111 osplatform = *pp_osplatform;
115 "Wrong value for _osver %04x expected %04lx\n",
118 "Wrong value for _osplatform %x expected %lx\n",
130 res = p_get_pgmptr(&pgm);
132 ok(
res == 0,
"Wrong _get_pgmptr return value %d expected 0\n",
res);
133 ok( pgm !=
NULL,
"_get_pgmptr returned a NULL pointer\n" );
139 char **
argv, **new_argv, **envp;
149 sprintf(filepath,
"%s*\\*", tmppath);
151 sprintf(filepath,
"%swine_test/*", tmppath);
153 ok(!
argv[4],
"argv[4] != NULL\n");
158 ok(new_argc == 4,
"*__p___argc() = %d\n", new_argc);
159 ok(new_argv ==
argv,
"*__p___argv() = %p, expected %p\n", new_argv,
argv);
161 else skip(
"__p___argc or __p___argv is not available\n");
167 sprintf(filepath,
"%s*\\*", tmppath);
169 sprintf(filepath,
"%swine_test/a", tmppath);
172 sprintf(filepath,
"%swine_test/test", tmppath);
176 sprintf(filepath,
"%swine_test/test", tmppath);
179 ok(!
argv[5],
"argv[5] != NULL\n");
184 ok(new_argc ==
argc,
"*__p___argc() = %d, expected %d\n", new_argc,
argc);
185 ok(new_argv ==
argv,
"*__p___argv() = %p, expected %p\n", new_argv,
argv);
188 sprintf(filepath,
"%swine_test/b", tmppath);
190 ok(
f !=
NULL,
"fopen(%s) failed: %d\n", filepath,
errno);
194 ok(new_argc ==
argc+1,
"new_argc = %d, expected %d\n", new_argc,
argc+1);
210 sprintf(filepath,
"%swine_test", tmppath);
213 sprintf(filepath,
"%swine_test\\a", tmppath);
215 ok(
f !=
NULL,
"fopen(%s) failed: %d\n", filepath,
errno);
217 sprintf(filepath,
"%swine_test\\test", tmppath);
219 ok(
f !=
NULL,
"fopen(%s) failed: %d\n", filepath,
errno);
228 sprintf(filepath,
"%swine_test\\a", tmppath);
230 sprintf(filepath,
"%swine_test", tmppath);
int strcmp(const char *String1, const char *String2)
ACPI_SIZE strlen(const char *String)
static void startup(void)
_Check_return_ _CRTIMP int __cdecl _rmdir(_In_z_ const char *_Path)
_Check_return_ _CRTIMP int __cdecl _mkdir(_In_z_ const char *_Path)
void __getmainargs(int *argc, char ***argv, char ***envp, int expand_wildcards, int *new_mode)
#define GetProcAddress(x, y)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
DWORD WINAPI GetTempPathA(IN DWORD nBufferLength, OUT LPSTR lpBuffer)
BOOL WINAPI DECLSPEC_HOTPATCH CreateProcessA(LPCSTR lpApplicationName, LPSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPCSTR lpCurrentDirectory, LPSTARTUPINFOA lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation)
BOOL WINAPI GetVersionExA(IN LPOSVERSIONINFOA lpVersionInformation)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
#define sprintf(buf, format,...)
static void test___getmainargs_parent(char *name)
static char ***__cdecl * p___p___argv(void)
static void test_initvar(HMODULE hmsvcrt)
static void __cdecl initcallback(void)
static int *__cdecl * p___p___argc(void)
static void test_get_pgmptr(void)
void(__cdecl * _INITTERMFUN)(void)
#define initterm_test(start, end, expected)
static void test_initterm(void)
static _INITTERMFUN * end
static void test___getmainargs(void)
void CDECL __wgetmainargs(int *argc, WCHAR ***wargv, WCHAR ***wenvp, int expand_wildcards, int *new_mode)
_Check_return_ _CRTIMP int __cdecl _unlink(_In_z_ const char *_Filename)
int winetest_get_mainargs(char ***pargv)
#define wait_child_process
#define NORMAL_PRIORITY_CLASS
#define CREATE_DEFAULT_ERROR_MODE
struct _OSVERSIONINFOA OSVERSIONINFOA