mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 08:10:12 +01:00
check_rules unit test fix
This commit is contained in:
parent
d261cc98de
commit
f17e50d3a7
@ -134,10 +134,12 @@ static void test_archiving_rule(struct __config *cfg){
|
|||||||
|
|
||||||
//printf("%s, '%s'\n", rule_test[i].filename, rule);
|
//printf("%s, '%s'\n", rule_test[i].filename, rule);
|
||||||
|
|
||||||
if(rule == NULL && rule == rule_test[i].expected_result) continue;
|
if(rule){
|
||||||
|
assert(strcmp(rule, rule_test[i].expected_result) == 0 && "test_archiving_rule()");
|
||||||
assert(strcmp(rule, rule_test[i].expected_result) == 0 && "test_archiving_rule()");
|
}
|
||||||
|
else {
|
||||||
|
assert(rule_test[i].expected_result == NULL && "test_archiving_rule()");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
clearrules(data.archiving_rules);
|
clearrules(data.archiving_rules);
|
||||||
|
Loading…
Reference in New Issue
Block a user