[SHELL32_APITEST] Add FindExecutable testcase (#3723)

Investigate the implementation of shell32!FindExecutable function.
CORE-17351, CORE-16898, CORE-17612
This commit is contained in:
Katayama Hirofumi MZ 2021-06-06 06:51:42 +09:00 committed by GitHub
parent 08e9000496
commit fccea84dd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 248 additions and 10 deletions

View file

@ -322,12 +322,12 @@ GetSubProgramPath(void)
{
GetModuleFileNameW(NULL, s_szSubProgram, _countof(s_szSubProgram));
PathRemoveFileSpecW(s_szSubProgram);
PathAppendW(s_szSubProgram, L"shell-notify.exe");
PathAppendW(s_szSubProgram, L"shell32_apitest_sub.exe");
if (!PathFileExistsW(s_szSubProgram))
{
PathRemoveFileSpecW(s_szSubProgram);
PathAppendW(s_szSubProgram, L"testdata\\shell-notify.exe");
PathAppendW(s_szSubProgram, L"testdata\\shell32_apitest_sub.exe");
if (!PathFileExistsW(s_szSubProgram))
{
@ -356,7 +356,7 @@ JustDoIt(INT nMode)
HINSTANCE hinst = ShellExecuteW(NULL, NULL, s_szSubProgram, szParams, NULL, SW_SHOWNORMAL);
if ((INT_PTR)hinst <= 32)
{
skip("Unable to run shell-notify.exe.\n");
skip("Unable to run shell32_apitest_sub.exe.\n");
return;
}
@ -421,7 +421,7 @@ START_TEST(SHChangeNotify)
{
if (!GetSubProgramPath())
{
skip("shell-notify.exe not found\n");
skip("shell32_apitest_sub.exe not found\n");
}
JustDoIt(0);