Alexandre Julliard : ntdll/tests: Use more reasonable timeouts and avoid long long constants.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Dec 2 10:21:18 CST 2015
Module: wine
Branch: master
Commit: 9cad1cc84762137a20caa53b5d7724c7fd03c686
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9cad1cc84762137a20caa53b5d7724c7fd03c686
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Dec 2 17:09:08 2015 +0900
ntdll/tests: Use more reasonable timeouts and avoid long long constants.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/tests/pipe.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/ntdll/tests/pipe.c b/dlls/ntdll/tests/pipe.c
index 20d82f4..7c30408 100644
--- a/dlls/ntdll/tests/pipe.c
+++ b/dlls/ntdll/tests/pipe.c
@@ -126,7 +126,7 @@ static NTSTATUS create_pipe(PHANDLE handle, ULONG sharing, ULONG options)
attr.SecurityDescriptor = NULL;
attr.SecurityQualityOfService = NULL;
- timeout.QuadPart = -100000000000ll;
+ timeout.QuadPart = -100000000;
res = pNtCreateNamedPipeFile(handle, FILE_READ_ATTRIBUTES | SYNCHRONIZE, &attr, &iosb, sharing, 2 /*FILE_CREATE*/,
options, 1, 0, 0, 0xFFFFFFFF, 500, 500, &timeout);
@@ -152,7 +152,7 @@ static void test_create_invalid(void)
attr.SecurityDescriptor = NULL;
attr.SecurityQualityOfService = NULL;
- timeout.QuadPart = -100000000000ll;
+ timeout.QuadPart = -100000000;
/* create a pipe with FILE_OVERWRITE */
res = pNtCreateNamedPipeFile(&handle, FILE_READ_ATTRIBUTES | SYNCHRONIZE, &attr, &iosb, FILE_SHARE_READ, 4 /*FILE_OVERWRITE*/,
@@ -521,7 +521,7 @@ static void test_filepipeinfo(void)
attr.SecurityDescriptor = NULL;
attr.SecurityQualityOfService = NULL;
- timeout.QuadPart = -100000000000ll;
+ timeout.QuadPart = -100000000;
/* test with INVALID_HANDLE_VALUE */
res = pNtQueryInformationFile(INVALID_HANDLE_VALUE, &iosb, &fpi, sizeof(fpi), (FILE_INFORMATION_CLASS)23);
More information about the wine-cvs
mailing list