Francois Gouget : shlwapi/tests: Fix test_StrFromTimeIntervalA() to print the badly formatted string in case of a failure.

Alexandre Julliard julliard at winehq.org
Thu Sep 15 12:34:53 CDT 2011


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

Author: Francois Gouget <fgouget at free.fr>
Date:   Thu Sep 15 08:53:40 2011 +0200

shlwapi/tests: Fix test_StrFromTimeIntervalA() to print the badly formatted string in case of a failure.

---

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

diff --git a/dlls/shlwapi/tests/string.c b/dlls/shlwapi/tests/string.c
index 64e5b59..4b984ce 100644
--- a/dlls/shlwapi/tests/string.c
+++ b/dlls/shlwapi/tests/string.c
@@ -607,8 +607,8 @@ static void test_StrFromTimeIntervalA(void)
   {
     StrFromTimeIntervalA(szBuff, 256, result->ms, result->digits);
 
-    ok(!strcmp(result->time_interval, szBuff), "Formatted %d %d wrong\n",
-       result->ms, result->digits);
+    ok(!strcmp(result->time_interval, szBuff), "Formatted %d %d wrong: %s\n",
+       result->ms, result->digits, szBuff);
     result++;
   }
 }




More information about the wine-cvs mailing list