Fixed parse(NULL,...) test descrepancy
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1155 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1078,11 +1078,11 @@ MimeSnifferTest::ParserTest() {
|
||||
cout << testCase.error << endl;
|
||||
}
|
||||
*/
|
||||
if (error != B_BAD_MIME_SNIFFER_RULE) {
|
||||
printf("rule: `%s'\n", testCase.rule);
|
||||
if (testCase.rule && error != B_BAD_MIME_SNIFFER_RULE) {
|
||||
printf("rule: `%s'", testCase.rule);
|
||||
RES(error);
|
||||
}
|
||||
CHK(error == B_BAD_MIME_SNIFFER_RULE);
|
||||
CHK(error == (testCase.rule ? B_BAD_MIME_SNIFFER_RULE : B_BAD_VALUE));
|
||||
CHK(parseError.FindLast(testCase.error) >= 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user