[PATCH v2 1/9] ntoskrnl.exe/tests: Reduce the verbosity of test_return_status.

Rémi Bernon rbernon at codeweavers.com
Thu Sep 2 04:00:36 CDT 2021


Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---

v2: Fix an incorrect use of sizeof in the WCHAR / char conversion, in
    GetFullPathNameW and SetupCopyOEMInfW calls.

    I also initially overlooked the small differences variations between
    driver_pnp and driver_hid start/stop sequences, it doesn't seem to
    make any difference but I used the driver_pnp version which does a
    few more things.

    Also edited the subjects.

 dlls/ntoskrnl.exe/tests/ntoskrnl.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/dlls/ntoskrnl.exe/tests/ntoskrnl.c b/dlls/ntoskrnl.exe/tests/ntoskrnl.c
index dc10497caee..e3afd46181c 100644
--- a/dlls/ntoskrnl.exe/tests/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/tests/ntoskrnl.c
@@ -946,7 +946,7 @@ static void do_return_status(ULONG ioctl, struct return_status_params *params)
 static void test_return_status(void)
 {
     struct return_status_params params;
-    unsigned int i, j, k;
+    unsigned int i, j, k, old_threshold;
 
     static const ULONG method_tests[] =
     {
@@ -979,12 +979,15 @@ static void test_return_status(void)
                     params.ret_status = status_tests[i];
                     params.iosb_status = status_tests[j];
 
-                    winetest_push_context("return 0x%08x, iosb 0x%08x, pending %d, method %u",
-                            params.ret_status, params.iosb_status, params.pending, method_tests[k] & 3);
+                    trace("testing return 0x%08x, iosb 0x%08x, pending %d, method %u\n",
+                          params.ret_status, params.iosb_status, params.pending, method_tests[k] & 3);
+                    old_threshold = winetest_mute_threshold;
+                    winetest_mute_threshold = 1;
 
                     do_return_status(method_tests[k], &params);
 
-                    winetest_pop_context();
+                    winetest_mute_threshold = old_threshold;
+                    trace("done\n");
                 }
             }
         }
-- 
2.33.0




More information about the wine-devel mailing list