Zebediah Figura : psapi/tests: Avoid failing silently.
Alexandre Julliard
julliard at winehq.org
Fri Jul 6 15:52:09 CDT 2018
Module: wine
Branch: master
Commit: 42016f6f0e8b3990b570899479dbf5df1c2736cf
URL: https://source.winehq.org/git/wine.git/?a=commit;h=42016f6f0e8b3990b570899479dbf5df1c2736cf
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Fri Jul 6 00:05:38 2018 +0200
psapi/tests: Avoid failing silently.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/psapi/tests/psapi_main.c | 29 +++++++++++++++--------------
1 file changed, 15 insertions(+), 14 deletions(-)
diff --git a/dlls/psapi/tests/psapi_main.c b/dlls/psapi/tests/psapi_main.c
index 3fec5d7..99d081f 100644
--- a/dlls/psapi/tests/psapi_main.c
+++ b/dlls/psapi/tests/psapi_main.c
@@ -819,23 +819,24 @@ START_TEST(psapi_main)
IsWow64Process(GetCurrentProcess(), &wow64);
hpSR = OpenProcess(STANDARD_RIGHTS_REQUIRED, FALSE, pid);
+ ok(!!hpSR, "got error %u\n", GetLastError());
hpQI = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, pid);
+ ok(!!hpQI, "got error %u\n", GetLastError());
hpVR = OpenProcess(PROCESS_VM_READ, FALSE, pid);
+ ok(!!hpVR, "got error %u\n", GetLastError());
hpQV = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, pid);
-
- if(hpSR && hpQI && hpVR && hpQV)
- {
- test_EnumProcesses();
- test_EnumProcessModules();
- test_GetModuleInformation();
- test_GetPerformanceInfo();
- test_GetProcessMemoryInfo();
- test_GetMappedFileName();
- test_GetProcessImageFileName();
- test_GetModuleFileNameEx();
- test_GetModuleBaseName();
- test_ws_functions();
- }
+ ok(!!hpQV, "got error %u\n", GetLastError());
+
+ test_EnumProcesses();
+ test_EnumProcessModules();
+ test_GetModuleInformation();
+ test_GetPerformanceInfo();
+ test_GetProcessMemoryInfo();
+ test_GetMappedFileName();
+ test_GetProcessImageFileName();
+ test_GetModuleFileNameEx();
+ test_GetModuleBaseName();
+ test_ws_functions();
CloseHandle(hpSR);
CloseHandle(hpQI);
More information about the wine-cvs
mailing list