tst: winfsp-tests: disable FILE_FLAG_NO_BUFFERING mmap test against localhost share (Win8 bug)

This commit is contained in:
Bill Zissimopoulos 2016-11-01 14:56:01 -07:00
parent dbb8b5d3b9
commit a255fa11e7
2 changed files with 14 additions and 4 deletions

View File

@ -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

View File

@ -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)