Module: wine Branch: master Commit: 2f57803114cfb5cf8549d938e1e15a33d48c71e5 URL: https://gitlab.winehq.org/wine/wine/-/commit/2f57803114cfb5cf8549d938e1e15a3...
Author: Francois Gouget fgouget@codeweavers.com Date: Tue Jul 25 19:18:06 2023 +0200
ntdll/tests: Fix the NtSetInformationFile() test on Windows 10 <= 1709.
It does not support FileDispositionInformationEx and returns various error codes.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55331
---
dlls/ntdll/tests/file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/ntdll/tests/file.c b/dlls/ntdll/tests/file.c index ee47f36f44e..4d3a3fc0395 100644 --- a/dlls/ntdll/tests/file.c +++ b/dlls/ntdll/tests/file.c @@ -3138,7 +3138,9 @@ static void test_file_disposition_information(void) ok( handle != INVALID_HANDLE_VALUE, "failed to create temp file\n" ); fdie.Flags = FILE_DISPOSITION_DELETE | FILE_DISPOSITION_IGNORE_READONLY_ATTRIBUTE; res = pNtSetInformationFile( handle, &io, &fdie, sizeof fdie, FileDispositionInformationEx ); - ok( res == STATUS_SUCCESS || broken(res == STATUS_INVALID_INFO_CLASS), + ok( res == STATUS_SUCCESS + || broken(res == STATUS_INVALID_INFO_CLASS) /* win10 1507 & 32-bit 1607 */ + || broken(res == STATUS_NOT_SUPPORTED), /* win10 1709 & 64-bit 1607 */ "unexpected FileDispositionInformationEx result (expected STATUS_SUCCESS or SSTATUS_INVALID_INFO_CLASS, got %lx)\n", res ); CloseHandle( handle ); if ( res == STATUS_SUCCESS )