Eric Pouech : ntdll/tests: Enable compilation with long types in error.c.

Alexandre Julliard julliard at winehq.org
Fri Mar 18 16:39:54 CDT 2022


Module: wine
Branch: master
Commit: 44d604f57e8b4da93f5b267c9d6cc3afa0473298
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=44d604f57e8b4da93f5b267c9d6cc3afa0473298

Author: Eric Pouech <eric.pouech at gmail.com>
Date:   Fri Mar 18 08:33:59 2022 +0100

ntdll/tests: Enable compilation with long types in error.c.

Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/tests/error.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/dlls/ntdll/tests/error.c b/dlls/ntdll/tests/error.c
index 8f099e6903a..7784886c79b 100644
--- a/dlls/ntdll/tests/error.c
+++ b/dlls/ntdll/tests/error.c
@@ -18,6 +18,7 @@
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
+#undef WINE_NO_LONG_TYPES /* temporary for migration */
 
 #include <stdarg.h>
 #include <stdio.h>
@@ -75,7 +76,7 @@ static void cmp_call(NTSTATUS win_nt, ULONG win32, const char* message)
 
     err = pRtlNtStatusToDosError(win_nt);
     ok(err == win32,
-       "%s (%x): got %u, expected %u\n",
+       "%s (%lx): got %lu, expected %lu\n",
             message, win_nt, err, win32);
 }
 
@@ -86,7 +87,7 @@ static void cmp_call2(NTSTATUS win_nt, ULONG win32, const char* message)
     err = pRtlNtStatusToDosError(win_nt);
     ok(err == win32 ||
        (!strict && err == ERROR_MR_MID_NOT_FOUND),
-       "%s (%x): got %u, expected %u (or MID_NOT_FOUND)\n",
+       "%s (%lx): got %lu, expected %lu (or MID_NOT_FOUND)\n",
        message, win_nt, err, win32);
 }
 
@@ -96,7 +97,7 @@ static void cmp_call3(NTSTATUS win_nt, ULONG win32_1, ULONG win32_2, const char*
 
     err = pRtlNtStatusToDosError(win_nt);
     ok(err == win32_1 || (!strict && err == win32_2),
-       "%s (%x): got %u, expected %u or %u\n",
+       "%s (%lx): got %lu, expected %lu or %lu\n",
             message, win_nt, err, win32_1, win32_2);
 }
 
@@ -107,7 +108,7 @@ static void cmp_call4(NTSTATUS win_nt, ULONG win32_1, ULONG win32_2, const char*
     err = pRtlNtStatusToDosError(win_nt);
     ok(err == win32_1 ||
        (!strict && (err == win32_2 || err == ERROR_MR_MID_NOT_FOUND)),
-       "%s (%x): got %u, expected %u or %u\n",
+       "%s (%lx): got %lu, expected %lu or %lu\n",
             message, win_nt, err, win32_1, win32_2);
 }
 




More information about the wine-cvs mailing list