tst: winfsp-tests: troubleshoot appveyor dirnotify failure

This commit is contained in:
Bill Zissimopoulos 2016-09-21 15:07:51 -07:00
parent aed134080c
commit b06e947e0e

View File

@ -230,6 +230,8 @@ static unsigned __stdcall dirnotify_dotest_thread(void *FilePath)
{ {
FspDebugLog(__FUNCTION__ ": \"%S\"\n", FilePath); FspDebugLog(__FUNCTION__ ": \"%S\"\n", FilePath);
Sleep(1000); /* wait for ReadDirectoryChangesW */
HANDLE Handle; HANDLE Handle;
Handle = CreateFileW(FilePath, Handle = CreateFileW(FilePath,
GENERIC_READ | GENERIC_WRITE, 0, 0, CREATE_NEW, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_DELETE_ON_CLOSE, 0); GENERIC_READ | GENERIC_WRITE, 0, 0, CREATE_NEW, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_DELETE_ON_CLOSE, 0);