Alexandre Julliard : msvcrt/tests: Avoid sizeof in traces.

Alexandre Julliard julliard at winehq.org
Wed Nov 17 10:38:07 CST 2010


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Nov 17 15:08:03 2010 +0100

msvcrt/tests: Avoid sizeof in traces.

---

 dlls/msvcrt/tests/file.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/msvcrt/tests/file.c b/dlls/msvcrt/tests/file.c
index 488c219..33fe128 100644
--- a/dlls/msvcrt/tests/file.c
+++ b/dlls/msvcrt/tests/file.c
@@ -1237,7 +1237,7 @@ static void test_fopen_s( void )
     file = fopen(name, "r");
     ok(file != 0, "fopen failed\n");
     len = fread(buff, 1, sizeof(name), file);
-    ok(len == sizeof(name), "File length supposed to be %d, not %d\n", sizeof(name), len);
+    ok(len == sizeof(name), "File length is %d\n", len);
     buff[sizeof(name)] = '\0';
     ok(strcmp(name, buff) == 0, "File content mismatch! Got %s, expected %s\n", buff, name);
 
@@ -1278,7 +1278,7 @@ static void test__wfopen_s( void )
     file = fopen(name, "r");
     ok(file != 0, "fopen failed\n");
     len = fread(buff, 1, sizeof(name), file);
-    ok(len == sizeof(name), "File length supposed to be %d, not %d\n", sizeof(name), len);
+    ok(len == sizeof(name), "File length is %d\n", len);
     buff[sizeof(name)] = '\0';
     ok(strcmp(name, buff) == 0, "File content mismatch! Got %s, expected %s\n", buff, name);
 




More information about the wine-cvs mailing list