Stefan Leichter : advpack/tests: Print the unexpected result in function check_ini_contents.
Alexandre Julliard
julliard at winehq.org
Mon Oct 29 08:34:57 CDT 2007
Module: wine
Branch: master
Commit: 9a04b754e92fcd72b4613ed8f3af2c18111eae31
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9a04b754e92fcd72b4613ed8f3af2c18111eae31
Author: Stefan Leichter <Stefan.Leichter at camline.com>
Date: Sun Oct 28 22:41:59 2007 +0100
advpack/tests: Print the unexpected result in function check_ini_contents.
---
dlls/advpack/tests/files.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/dlls/advpack/tests/files.c b/dlls/advpack/tests/files.c
index cbbbd3a..71c1741 100644
--- a/dlls/advpack/tests/files.c
+++ b/dlls/advpack/tests/files.c
@@ -112,17 +112,23 @@ static BOOL check_ini_contents(LPSTR filename, BOOL add)
GetPrivateProfileStringA("backup", "one", NULL, field, FIELD_LEN, filename);
match = !lstrcmpA(field, "-1,0,0,0,0,0,-1");
- if ((add && !match) || (!add && match))
+ if ((add && !match) || (!add && match)) {
+ trace("first test: got %s\n", field);
ret = FALSE;
+ }
GetPrivateProfileStringA("backup", "two", NULL, field, FIELD_LEN, filename);
- if (lstrcmpA(field, "-1,0,0,0,0,0,-1"))
+ if (lstrcmpA(field, "-1,0,0,0,0,0,-1")) {
+ trace("second test: got %s\n", field);
ret = FALSE;
+ }
GetPrivateProfileStringA("backup", "three", NULL, field, FIELD_LEN, filename);
match = !lstrcmpA(field, "-1,0,0,0,0,0,-1");
- if ((add && !match) || (!add && match))
+ if ((add && !match) || (!add && match)) {
+ trace("third test: got %s\n", field);
ret = FALSE;
+ }
return ret;
}
More information about the wine-cvs
mailing list