From 3ed22ed326fa60213917a2a6a33b8a6ee4dc0afa Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Wed, 9 Feb 2022 12:37:06 +0900 Subject: [PATCH] [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); }