From a255fa11e7d35b0fcc9d09ad391453d96b586b25 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Tue, 1 Nov 2016 14:56:01 -0700 Subject: [PATCH] tst: winfsp-tests: disable FILE_FLAG_NO_BUFFERING mmap test against localhost share (Win8 bug) --- tools/run-tests.bat | 4 ++-- tst/winfsp-tests/rdwr-test.c | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/tools/run-tests.bat b/tools/run-tests.bat index ebba956b..c3dc5243 100644 --- a/tools/run-tests.bat +++ b/tools/run-tests.bat @@ -145,7 +145,7 @@ exit /b 0 :winfsp-tests-x64-external-share M: "%ProjRoot%\build\VStudio\build\%Configuration%\winfsp-tests-x64.exe" --external --share=winfsp-tests-share=M:\ --resilient ^ - -rdwr_mmap* -reparse_symlink* + -reparse_symlink* if !ERRORLEVEL! neq 0 goto fail exit /b 0 @@ -168,7 +168,7 @@ exit /b 0 :winfsp-tests-x86-external-share O: "%ProjRoot%\build\VStudio\build\%Configuration%\winfsp-tests-x86.exe" --external --share=winfsp-tests-share=O:\ --resilient ^ - -rdwr_mmap* -reparse_symlink* + -reparse_symlink* if !ERRORLEVEL! neq 0 goto fail exit /b 0 diff --git a/tst/winfsp-tests/rdwr-test.c b/tst/winfsp-tests/rdwr-test.c index 16afdeaa..e6c5f314 100644 --- a/tst/winfsp-tests/rdwr-test.c +++ b/tst/winfsp-tests/rdwr-test.c @@ -1009,10 +1009,20 @@ void rdwr_mmap_test(void) WCHAR DirBuf[MAX_PATH], DriveBuf[3]; GetTestDirectoryAndDrive(DirBuf, DriveBuf); rdwr_mmap_dotest(-1, DriveBuf, DirBuf, 0, 0, FALSE); - rdwr_mmap_dotest(-1, DriveBuf, DirBuf, 0, FILE_FLAG_NO_BUFFERING, FALSE); + if (!OptShareTarget) + /* + * This test fails under Win8 (version 6.2 Build 9200) + * See: http://www.osronline.com/showthread.cfm?link=279909 + */ + rdwr_mmap_dotest(-1, DriveBuf, DirBuf, 0, FILE_FLAG_NO_BUFFERING, FALSE); rdwr_mmap_dotest(-1, DriveBuf, DirBuf, 0, FILE_FLAG_WRITE_THROUGH, FALSE); rdwr_mmap_dotest(-1, DriveBuf, DirBuf, 0, 0, TRUE); - rdwr_mmap_dotest(-1, DriveBuf, DirBuf, 0, FILE_FLAG_NO_BUFFERING, TRUE); + if (!OptShareTarget) + /* + * This test fails under Win8 (version 6.2 Build 9200) + * See: http://www.osronline.com/showthread.cfm?link=279909 + */ + rdwr_mmap_dotest(-1, DriveBuf, DirBuf, 0, FILE_FLAG_NO_BUFFERING, TRUE); rdwr_mmap_dotest(-1, DriveBuf, DirBuf, 0, FILE_FLAG_WRITE_THROUGH, TRUE); } if (WinFspDiskTests)