mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 22:41:59 +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);
|
||||
|
||||
if(rule == NULL && rule == rule_test[i].expected_result) continue;
|
||||
|
||||
assert(strcmp(rule, rule_test[i].expected_result) == 0 && "test_archiving_rule()");
|
||||
|
||||
if(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);
|
||||
|
Loading…
Reference in New Issue
Block a user