kernel32/tests: Get rid of assert() in locale.c

André Hentschel nerv at dawncrow.de
Fri Feb 21 15:07:46 CST 2014


---
 dlls/kernel32/tests/locale.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/kernel32/tests/locale.c b/dlls/kernel32/tests/locale.c
index 62e9f01..f3b2912 100644
--- a/dlls/kernel32/tests/locale.c
+++ b/dlls/kernel32/tests/locale.c
@@ -25,7 +25,6 @@
  *  the control panel i8n page), we will still get the expected results.
  */
 
-#include <assert.h>
 #include <stdlib.h>
 #include <stdarg.h>
 #include <stdio.h>
@@ -2051,7 +2050,7 @@ static void test_sorting(void)
     char **str_buf = (char **)buf;
     int i;
 
-    assert(sizeof(buf) >= sizeof(strings));
+    ok(sizeof(buf) >= sizeof(strings), "Buffer too small (%d < %d)\n", sizeof(buf), sizeof(strings));
 
     /* 1. sort using lstrcmpA */
     memcpy(buf, strings, sizeof(strings));
-- 
1.8.1.2





More information about the wine-patches mailing list