From 9a04b754e92fcd72b4613ed8f3af2c18111eae31 Mon Sep 17 00:00:00 2001 From: Stefan Leichter Date: Sun, 28 Oct 2007 22:41:59 +0100 Subject: [PATCH] advpack/tests: Print the unexpected result in function check_ini_contents. --- dlls/advpack/tests/files.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dlls/advpack/tests/files.c b/dlls/advpack/tests/files.c index cbbbd3afd87..71c1741d957 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; }