From b06e947e0e8f9fbae40f26b442b1d4c218c6d0f2 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Wed, 21 Sep 2016 15:07:51 -0700 Subject: [PATCH] tst: winfsp-tests: troubleshoot appveyor dirnotify failure --- tst/winfsp-tests/dirctl-test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tst/winfsp-tests/dirctl-test.c b/tst/winfsp-tests/dirctl-test.c index 0e9a529a..74b83013 100644 --- a/tst/winfsp-tests/dirctl-test.c +++ b/tst/winfsp-tests/dirctl-test.c @@ -230,6 +230,8 @@ static unsigned __stdcall dirnotify_dotest_thread(void *FilePath) { FspDebugLog(__FUNCTION__ ": \"%S\"\n", FilePath); + Sleep(1000); /* wait for ReadDirectoryChangesW */ + HANDLE Handle; Handle = CreateFileW(FilePath, GENERIC_READ | GENERIC_WRITE, 0, 0, CREATE_NEW, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_DELETE_ON_CLOSE, 0);