26 "C:/Program Files/GLBasic/Compiler/platform/Win32/Bin/../lib/gcc/mingw32/3.4.2/;"
27 "C:/Program Files/GLBasic/Compiler/platform/Win32/Bin/../lib/gcc/;"
28 "/mingw/lib/gcc/mingw32/3.4.2/;"
29 "/usr/lib/gcc/mingw32/3.4.2/;"
30 "C:/Program Files/GLBasic/Compiler/platform/Win32/Bin/../lib/gcc/mingw32/3.4.2/../../../../mingw32/lib/mingw32/3.4.2/;"
31 "C:/Program Files/GLBasic/Compiler/platform/Win32/Bin/../lib/gcc/mingw32/3.4.2/../../../../mingw32/lib/;"
32 "/mingw/mingw32/lib/mingw32/3.4.2/;"
33 "/mingw/mingw32/lib/;"
34 "/mingw/lib/mingw32/3.4.2/;"
36 "C:/Program Files/GLBasic/Compiler/platform/Win32/Bin/../lib/gcc/mingw32/3.4.2/../../../mingw32/3.4.2/;"
37 "C:/Program Files/GLBasic/Compiler/platform/Win32/Bin/../lib/gcc/mingw32/3.4.2/../../../;"
38 "/mingw/lib/mingw32/3.4.2/;"
40 "/lib/mingw32/3.4.2/;"
42 "/usr/lib/mingw32/3.4.2/;"
71 ok(
ret == 1,
"Expected system to return 1, got %d\n",
ret);
74 ok(
ret == 0,
"Expected system to return 0, got %d\n",
ret);
83 ok(
p_environ !=
NULL,
"Expected the pointer to _environ to be non-NULL\n" );
85 ok( *
p_environ !=
NULL,
"Expected _environ to be initialized on startup\n" );
89 skip(
"_environ pointers are not valid\n" );
97 "Expected _environ pointers to be identical\n" );
100 skip(
"__p__environ() is not available\n" );
107 "Expected _environ pointers to be identical\n" );
110 win_skip(
"_get_environ() is not available\n" );
116 ok( envp !=
NULL,
"Expected initial environment block pointer to be non-NULL\n" );
119 skip(
"Initial environment block pointer is not valid\n" );
127 ok( envp[
i] !=
NULL,
"Expected environment block pointer element to be non-NULL\n" );
129 "Expected _environ and environment block pointer strings (%s vs. %s) to match\n",
134 ok( !envp[
i],
"Expected environment block pointer element to be NULL, got %p\n", envp[
i] );
142 static const WCHAR cat_eq_dogW[] = {
'c',
'a',
't',
'=',
'd',
'o',
'g',0};
143 static const WCHAR cat_eqW[] = {
'c',
'a',
't',
'=',0};
150 ok(
p_wenviron !=
NULL,
"Expected the pointer to _wenviron to be non-NULL\n" );
155 win_skip(
"Pointer to _wenviron is not valid\n" );
163 "Expected _wenviron pointers to be NULL\n" );
166 skip(
"__p__wenviron() is not available\n" );
173 "Expected _wenviron pointers to be NULL\n" );
176 win_skip(
"_get_wenviron() is not available\n" );
182 ok( envp !=
NULL,
"Expected initial environment block pointer to be non-NULL\n" );
185 skip(
"Initial environment block pointer is not valid\n" );
190 ok(
_putenv(
"cat=dog") == 0,
"failed setting cat=dog\n" );
192 ok(
_putenv(
"cat=") == 0,
"failed deleting cat\n" );
196 ok(
_wputenv(cat_eq_dogW) == 0,
"failed setting cat=dog\n" );
198 ok(
_wputenv(cat_eqW) == 0,
"failed deleting cat\n" );
203 ok( wenvp !=
NULL,
"Expected initial environment block pointer to be non-NULL\n" );
206 skip(
"Initial environment block pointer is not valid\n" );
215 "Expected _wenviron pointers to be identical\n" );
223 "Expected _wenviron pointers to be identical\n" );
230 ok( wenvp[
i] !=
NULL,
"Expected environment block pointer element to be non-NULL\n" );
232 "Expected _wenviron and environment block pointer strings (%s vs. %s) to match\n",
237 ok( !wenvp[
i],
"Expected environment block pointer element to be NULL, got %p\n", wenvp[
i] );
245 ok(
_putenv(
"cat=") == 0,
"_putenv failed on deletion of nonexistent environment variable\n" );
246 ok(
_putenv(
"cat=dog") == 0,
"failed setting cat=dog\n" );
247 ok(
strcmp(
getenv(
"cat"),
"dog") == 0,
"getenv did not return 'dog'\n" );
248 ok(
_putenv(
"cat=") == 0,
"failed deleting cat\n" );
250 ok(
_putenv(
"=") == -1,
"should not accept '=' as input\n" );
251 ok(
_putenv(
"=dog") == -1,
"should not accept '=dog' as input\n" );
254 ok(
getenv(
"nonexistent") ==
NULL,
"getenv should fail with nonexistent var name\n" );
int strcmp(const char *String1, const char *String2)
#define GetProcAddress(x, y)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
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 int __cdecl _wputenv(_In_z_ const wchar_t *_EnvString)
_Check_return_ _CRTIMP int __cdecl _putenv(_In_z_ const char *_EnvString)
_Check_return_ char *__cdecl getenv(_In_z_ const char *_VarName)
static PEXPLICIT_ACCESSW *static HMODULE hmod
static void test__environ(void)
static WCHAR ***__cdecl * p__p__wenviron(void)
void __cdecl __getmainargs(int *, char ***, char ***, int, int *)
static void test__wenviron(void)
static char ***__cdecl * p__p__environ(void)
static void test_environment_manipulation(void)
static void(* p_get_wenviron)(WCHAR ***)
static void(* p_get_environ)(char ***)
static char *** p_environ
static const char * a_very_long_env_string
static WCHAR *** p_wenviron
void __cdecl __wgetmainargs(int *, wchar_t ***, wchar_t ***, int, int *)
static void test_system(void)
int __cdecl system(_In_opt_z_ const char *_Command)
static int winetest_strcmpW(const WCHAR *str1, const WCHAR *str2)