tests: skip some slow tests when valgrinding

This commit is contained in:
Dirk-Jan C. Binnema
2025-05-24 21:04:49 +03:00
parent e367f5b0d1
commit cc1112d342
2 changed files with 8 additions and 1 deletions

View File

@ -489,6 +489,8 @@ test_index_basic()
g_assert_cmpuint(prog.updated,==, 0); g_assert_cmpuint(prog.updated,==, 0);
g_assert_cmpuint(prog.removed,==, 0); g_assert_cmpuint(prog.removed,==, 0);
mu_test_skip_valgrind_return();
Indexer::Config conf{}; Indexer::Config conf{};
conf.ignore_noupdate = true; conf.ignore_noupdate = true;
@ -540,6 +542,8 @@ test_index_lazy()
{ {
allow_warnings(); allow_warnings();
mu_test_skip_valgrind_return();
TempDir tdir; TempDir tdir;
auto store = Store::make_new(tdir.path(), MU_TESTMAILDIR2); auto store = Store::make_new(tdir.path(), MU_TESTMAILDIR2);
assert_valid_result(store); assert_valid_result(store);

View File

@ -492,13 +492,15 @@ Yes, that would be excellent.
} }
static void static void
test_store_circular_symlink(void) test_store_circular_symlink()
{ {
allow_warnings(); allow_warnings();
g_test_bug("2517"); g_test_bug("2517");
g_test_bug("2832"); g_test_bug("2832");
mu_test_skip_valgrind_return();
auto testhome{unwrap(make_temp_dir())}; auto testhome{unwrap(make_temp_dir())};
auto dbpath{runtime_path(RuntimePath::XapianDb, testhome)}; auto dbpath{runtime_path(RuntimePath::XapianDb, testhome)};
@ -513,6 +515,7 @@ test_store_circular_symlink(void)
auto&& store = unwrap(Store::make_new(dbpath, testmdir)); auto&& store = unwrap(Store::make_new(dbpath, testmdir));
store.indexer().start({}); store.indexer().start({});
size_t n{}; size_t n{};
while (store.indexer().is_running()) { while (store.indexer().is_running()) {
std::this_thread::sleep_for(100ms); std::this_thread::sleep_for(100ms);
// 5 sec should be enough, even on the slowest supported systems.. // 5 sec should be enough, even on the slowest supported systems..