#include <apitest.h>
#include <shlwapi.h>
#include <assert.h>
#include <pseh/pseh2.h>
Go to the source code of this file.
◆ BEEF
◆ DEAD
◆ EF_FULLPATH
◆ EF_NAME_ONLY
◆ EF_SYS_DIR
◆ EF_TESTDATA
◆ EF_TYPE_MASK
◆ EF_WIN_DIR
◆ IGNORE_ERR
◆ RAISED
◆ ENTRY
◆ DoEntry()
Definition at line 160 of file PathFindOnPath.c.
161{
165
167 {
170 }
171
173 {
176 {
178 }
180 {
182 }
183 break;
184
187 {
189 }
190 else
191 {
195 }
196
198 {
202 }
203 break;
204
207 {
209 }
210 else
211 {
215 }
216
218 {
222 }
223 break;
224
227 {
229 }
230 else
231 {
235 }
236
238 {
242 }
243 break;
244 }
245
246 if (PathVar)
247 {
249 {
250 skip(
"#%d: GetEnvironmentVariableW failed\n", EntryNumber);
251 return;
252 }
254 {
255 skip(
"#%d: SetEnvironmentVariableW failed\n", EntryNumber);
256 return;
257 }
258 }
259
261 {
264 {
266 }
267 else
268 {
270 }
272 }
274 {
277 }
279
280 if (PathVar)
281 {
283 "#%d: SetEnvironmentVariableW failed\n", EntryNumber);
284 }
285
286 ok(Ret ==
pEntry->Ret,
"#%d: Ret expected %d, was %d.\n",
287 EntryNumber,
pEntry->Ret, Ret);
288
290 {
291 ok(
Error ==
pEntry->Error,
"#%d: last error expected %ld, was %ld.\n",
293 }
294
296 {
299 }
300 else if (
pEntry->NameExpected)
301 {
302 ok(
lstrcmpiW(
Path, PathExpected) == 0,
"#%d: Path expected %s, was %s.\n",
304 }
305}
static WCHAR s_TestDataPath[MAX_PATH]
PRTL_UNICODE_STRING_BUFFER Path
#define GetEnvironmentVariableW(x, y, z)
BOOL WINAPI DECLSPEC_HOTPATCH SetEnvironmentVariableW(IN LPCWSTR lpName, IN LPCWSTR lpValue)
UINT WINAPI GetSystemDirectoryW(OUT LPWSTR lpBuffer, IN UINT uSize)
UINT WINAPI GetWindowsDirectoryW(OUT LPWSTR lpBuffer, IN UINT uSize)
int WINAPI lstrcmpiW(LPCWSTR str1, LPCWSTR str2)
BOOL WINAPI PathFindOnPathW(LPWSTR lpszFile, LPCWSTR *lppszOtherDirs)
#define EXCEPTION_EXECUTE_HANDLER
LPWSTR WINAPI lstrcatW(LPWSTR lpString1, LPCWSTR lpString2)
#define _SEH2_EXCEPT(...)
DWORD WINAPI GetLastError(void)
Referenced by Test_PathFindOnPathW().
◆ START_TEST()
Definition at line 317 of file PathFindOnPath.c.
318{
320
323
326
329
335 {
336 skip(
"GetModuleFileName and/or wcsrchr are insane.\n");
337 return;
338 }
341 {
342 skip(
"testdata is not found.\n");
343 return;
344 }
345
348
350}
static WCHAR s_NotepadPath[MAX_PATH]
static WCHAR s_FontsDir[MAX_PATH]
static WCHAR s_SysDir[MAX_PATH]
static WCHAR s_WinDir[MAX_PATH]
static void Test_PathFindOnPathW(void)
DWORD WINAPI GetFileAttributesW(LPCWSTR lpFileName)
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
#define INVALID_FILE_ATTRIBUTES
◆ Test_PathFindOnPathW()
static void Test_PathFindOnPathW |
( |
void |
| ) |
|
|
static |
Definition at line 307 of file PathFindOnPath.c.
308{
310
312 {
314 }
315}
static const ENTRY s_Entries[]
static void DoEntry(INT EntryNumber, const ENTRY *pEntry, const WCHAR *PathVar)
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
Referenced by START_TEST().
◆ s_Dirs
◆ s_Entries
◆ s_FontsDir
◆ s_NotepadPath
◆ s_SysDir
◆ s_TestDataPath
◆ s_WinDir