shell32/tests: Fix checking the child strings.
This commit is contained in:
parent
81079ef35b
commit
4e862b8440
|
@ -680,6 +680,11 @@ static void _okChildString(const char* file, int line, const char* key, const ch
|
||||||
{
|
{
|
||||||
char* result;
|
char* result;
|
||||||
result=getChildString("Arguments", key);
|
result=getChildString("Arguments", key);
|
||||||
|
if (!result)
|
||||||
|
{
|
||||||
|
ok_(file, line)(FALSE, "%s expected '%s', but key not found or empty\n", key, expected);
|
||||||
|
return;
|
||||||
|
}
|
||||||
ok_(file, line)(lstrcmpiA(result, expected) == 0,
|
ok_(file, line)(lstrcmpiA(result, expected) == 0,
|
||||||
"%s expected '%s', got '%s'\n", key, expected, result);
|
"%s expected '%s', got '%s'\n", key, expected, result);
|
||||||
}
|
}
|
||||||
|
@ -688,6 +693,11 @@ static void _okChildPath(const char* file, int line, const char* key, const char
|
||||||
{
|
{
|
||||||
char* result;
|
char* result;
|
||||||
result=getChildString("Arguments", key);
|
result=getChildString("Arguments", key);
|
||||||
|
if (!result)
|
||||||
|
{
|
||||||
|
ok_(file, line)(FALSE, "%s expected '%s', but key not found or empty\n", key, expected);
|
||||||
|
return;
|
||||||
|
}
|
||||||
ok_(file, line)(StrCmpPath(result, expected) == 0,
|
ok_(file, line)(StrCmpPath(result, expected) == 0,
|
||||||
"%s expected '%s', got '%s'\n", key, expected, result);
|
"%s expected '%s', got '%s'\n", key, expected, result);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue