https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3ed22ed326fa60213917a2...
commit 3ed22ed326fa60213917a2a6a33b8a6ee4dc0afa Author: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com AuthorDate: Wed Feb 9 12:37:06 2022 +0900 Commit: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com CommitDate: Wed Feb 9 12:37:06 2022 +0900
[SHELL32_APITEST] Try to fix Test Win2003_x64
rm: cannot remove 'C:\tests/testdata/shell32_apitest_sub.exe': Permission denied --- modules/rostests/apitests/shell32/SHChangeNotify.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/modules/rostests/apitests/shell32/SHChangeNotify.cpp b/modules/rostests/apitests/shell32/SHChangeNotify.cpp index 71fd9b54e15..e1edb4a5376 100644 --- a/modules/rostests/apitests/shell32/SHChangeNotify.cpp +++ b/modules/rostests/apitests/shell32/SHChangeNotify.cpp @@ -930,12 +930,13 @@ static unsigned __stdcall TestThreadProc(void *)
START_TEST(SHChangeNotify) { -#ifdef DISABLE_THIS_TESTCASE - skip("This testcase is disabled by DISABLE_THIS_TESTCASE macro.\n"); -#endif #ifdef TOTAL_TICK DWORD dwOldTick = GetTickCount(); #endif +#ifdef DISABLE_THIS_TESTCASE + skip("This testcase is disabled by DISABLE_THIS_TESTCASE macro.\n"); + return; +#endif
trace("Please don't operate your PC while testing...\n");
@@ -961,4 +962,7 @@ START_TEST(SHChangeNotify) DWORD dwTick = dwNewTick - dwOldTick; trace("SHChangeNotify: Total %lu.%lu sec\n", (dwTick / 1000), (dwTick / 100 % 10)); #endif + + DoWaitForWindow(CLASSNAME, CLASSNAME, TRUE, TRUE); + Sleep(500); }