Stefan Leichter : advpack/tests: Print the unexpected result in function check_ini_contents.
Module: wine Branch: master Commit: 9a04b754e92fcd72b4613ed8f3af2c18111eae31 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9a04b754e92fcd72b4613ed8f3... Author: Stefan Leichter <Stefan.Leichter(a)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; }
participants (1)
-
Alexandre Julliard