Addeded parenthesis around assignment/comparison statement
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2267 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -15,19 +15,19 @@ bool testCount (int expected, testType type)
|
|||||||
int found;
|
int found;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case clean:
|
case clean:
|
||||||
if (found=pm.getCleanCount()!=expected) {
|
if ((found=pm.getCleanCount())!=expected) {
|
||||||
error ("%s, invalid cleanCount of %d, expected: %d\n",testName,found,expected);
|
error ("%s, invalid cleanCount of %d, expected: %d\n",testName,found,expected);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case unused:
|
case unused:
|
||||||
if (found=pm.getUnusedCount()!=expected) {
|
if ((found=pm.getUnusedCount())!=expected) {
|
||||||
error ("%s, invalid unusedCount of %d, expected: %d\n",testName,found,expected);
|
error ("%s, invalid unusedCount of %d, expected: %d\n",testName,found,expected);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case inuse:
|
case inuse:
|
||||||
if (found=pm.getInUseCount()!=expected) {
|
if ((found=pm.getInUseCount())!=expected) {
|
||||||
error ("%s, invalid InUseCount of %d, expected: %d\n",testName,found,expected);
|
error ("%s, invalid InUseCount of %d, expected: %d\n",testName,found,expected);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user