Renamed internal runner field filter -> if_

This makes it more consistent with the actual test field, at the cost of
the symbol collision.
This commit is contained in:
Christopher Haster
2023-08-04 13:54:10 -05:00
parent 5be7bae518
commit 1c128afc90
6 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -825,7 +825,7 @@ void perm_count(
state->total += 1;
if (case_->filter && !case_->filter()) {
if (case_->if_ && !case_->if_()) {
return;
}
@@ -1365,7 +1365,7 @@ void perm_run(
bench_step += 1;
// filter?
if (case_->filter && !case_->filter()) {
if (case_->if_ && !case_->if_()) {
printf("skipped ");
perm_printid(suite, case_);
printf("\n");
+1 -1
View File
@@ -58,7 +58,7 @@ struct bench_case {
const bench_define_t *defines;
size_t permutations;
bool (*filter)(void);
bool (*if_)(void);
void (*run)(struct lfs_config *cfg);
};
+2 -2
View File
@@ -854,7 +854,7 @@ void perm_count(
state->total += 1;
if (case_->filter && !case_->filter()) {
if (case_->if_ && !case_->if_()) {
return;
}
@@ -1951,7 +1951,7 @@ void perm_run(
test_step += 1;
// filter?
if (case_->filter && !case_->filter()) {
if (case_->if_ && !case_->if_()) {
printf("skipped ");
perm_printid(suite, case_, NULL, 0);
printf("\n");
+1 -1
View File
@@ -52,7 +52,7 @@ struct test_case {
const test_define_t *defines;
size_t permutations;
bool (*filter)(void);
bool (*if_)(void);
void (*run)(struct lfs_config *cfg);
};