From dd84b0a7445ccb59246ab98e5c6f6855352f47c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= Date: Sun, 9 Jun 2019 18:17:21 +0200 Subject: [PATCH] ntoskrnl.exe/tests: Don't test functions directly when reporting GetLastError(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Hentschel Signed-off-by: Alexandre Julliard --- dlls/ntoskrnl.exe/tests/ntoskrnl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/ntoskrnl.exe/tests/ntoskrnl.c b/dlls/ntoskrnl.exe/tests/ntoskrnl.c index 19eeca20bce..267fddb7cc3 100644 --- a/dlls/ntoskrnl.exe/tests/ntoskrnl.c +++ b/dlls/ntoskrnl.exe/tests/ntoskrnl.c @@ -377,8 +377,10 @@ START_TEST(ntoskrnl) unload_driver(service2); unload_driver(service); - ok(DeleteFileA(filename), "DeleteFile failed: %u\n", GetLastError()); - ok(DeleteFileA(filename2), "DeleteFile failed: %u\n", GetLastError()); + ret = DeleteFileA(filename); + ok(ret, "DeleteFile failed: %u\n", GetLastError()); + ret = DeleteFileA(filename2); + ok(ret, "DeleteFile failed: %u\n", GetLastError()); test_driver3(); }