51#define initterm_test(start, end, expected) \
53 p_initterm(start, end); \
54 ok(expected == callbacked,"_initterm: callbacks count mismatch: got %i, expected %i\n", callbacked, expected);
64 for (
i = 0;
i < 4;
i++)
85 unsigned int winver, winmajor, winminor, osver, osplatform;
87 if( !( pp_winmajor && pp_winminor && pp_winver)) {
88 win_skip(
"_winver variables are not available\n");
92 winminor = *pp_winminor;
93 winmajor = *pp_winmajor;
100 "Wrong value for _winver %02x expected %02x\n",
102 if( !pp_osver || !pp_osplatform ) {
103 win_skip(
"_osver variables are not available\n");
107 osplatform = *pp_osplatform;
111 "Wrong value for _osver %04x expected %04x\n",
114 "Wrong value for _osplatform %x expected %x\n",
126 res = p_get_pgmptr(&pgm);
128 ok(
res == 0,
"Wrong _get_pgmptr return value %d expected 0\n",
res);
129 ok( pgm !=
NULL,
"_get_pgmptr returned a NULL pointer\n" );
135 char **
argv, **new_argv, **envp;
145 sprintf(filepath,
"%s*\\*", tmppath);
147 sprintf(filepath,
"%swine_test/*", tmppath);
149 ok(!
argv[4],
"argv[4] != NULL\n");
154 ok(new_argc == 4,
"*__p___argc() = %d\n", new_argc);
155 ok(new_argv ==
argv,
"*__p___argv() = %p, expected %p\n", new_argv,
argv);
157 else skip(
"__p___argc or __p___argv is not available\n");
163 sprintf(filepath,
"%s*\\*", tmppath);
165 sprintf(filepath,
"%swine_test/a", tmppath);
168 sprintf(filepath,
"%swine_test/test", tmppath);
172 sprintf(filepath,
"%swine_test/test", tmppath);
175 ok(!
argv[5],
"argv[5] != NULL\n");
180 ok(new_argc ==
argc,
"*__p___argc() = %d, expected %d\n", new_argc,
argc);
181 ok(new_argv ==
argv,
"*__p___argv() = %p, expected %p\n", new_argv,
argv);
184 sprintf(filepath,
"%swine_test/b", tmppath);
186 ok(
f !=
NULL,
"fopen(%s) failed: %d\n", filepath,
errno);
190 ok(new_argc ==
argc+1,
"new_argc = %d, expected %d\n", new_argc,
argc+1);
206 sprintf(filepath,
"%swine_test", tmppath);
209 sprintf(filepath,
"%swine_test\\a", tmppath);
211 ok(
f !=
NULL,
"fopen(%s) failed: %d\n", filepath,
errno);
213 sprintf(filepath,
"%swine_test\\test", tmppath);
215 ok(
f !=
NULL,
"fopen(%s) failed: %d\n", filepath,
errno);
224 sprintf(filepath,
"%swine_test\\a", tmppath);
226 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)
#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)
void __cdecl __getmainargs(int *, char ***, char ***, int, int *)
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)
_Check_return_ _CRTIMP int __cdecl _unlink(_In_z_ const char *_Filename)
int winetest_get_mainargs(char ***pargv)
void winetest_wait_child_process(HANDLE process)
#define NORMAL_PRIORITY_CLASS
#define CREATE_DEFAULT_ERROR_MODE
struct _OSVERSIONINFOA OSVERSIONINFOA