void test_expand_all_meta() {
Mutex::Locker l(lock);
- int before_count = 0;
+ int before_count = 0, data_dir = 0;
for (int i = 0; i < NUM_CONFIG_OPTIONS; i++) {
config_option *opt = config_optionsp + i;
if (opt->type == OPT_STR) {
std::string *str = (std::string *)opt->conf_ptr(this);
if (str->find("$") != string::npos)
before_count++;
+ if (str->find("$data_dir") != string::npos)
+ data_dir++;
}
}
// if there are no meta variables in the default configuration,
}
}
}
- ASSERT_EQ(0, after_count);
+ ASSERT_EQ(data_dir, after_count);
}
};