Jon Griffiths : msvcrt: Fix a test that fails on win95.

Alexandre Julliard julliard at winehq.org
Wed May 28 14:46:00 CDT 2008


Module: wine
Branch: master
Commit: 148483062882dab3c941ac153d2fc75f7b153552
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=148483062882dab3c941ac153d2fc75f7b153552

Author: Jon Griffiths <jon_p_griffiths at yahoo.com>
Date:   Wed May 28 06:01:39 2008 -0700

msvcrt: Fix a test that fails on win95.

---

 dlls/msvcrt/tests/printf.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/dlls/msvcrt/tests/printf.c b/dlls/msvcrt/tests/printf.c
index 7e07241..2cd08a7 100644
--- a/dlls/msvcrt/tests/printf.c
+++ b/dlls/msvcrt/tests/printf.c
@@ -221,8 +221,15 @@ static void test_sprintf( void )
 
     format = "%I32d";
     r = sprintf(buffer,format,1);
-    ok(!strcmp(buffer,"1"),"I32d failed\n");
-    ok( r==1, "return count wrong\n");
+    if (r == 1)
+    {
+        ok(!strcmp(buffer,"1"),"I32d failed, got '%s'\n",buffer);
+    }
+    else
+    {
+        /* Older versions don't grok I32 format */
+        ok(r == 4 && !strcmp(buffer,"I32d"),"I32d failed, got '%s',%d\n",buffer,r);
+    }
 
     format = "%I64D";
     r = sprintf(buffer,format,(LONGLONG)-1);




More information about the wine-cvs mailing list