clang-format: update c/cc coding style
Update all cc code using .clang-format; please do so as well for future PRs etc.; emacs has a handy 'clang-format' mode to make this automatic. For comparing old changes with git blame, we can disregard this one using --ignore-rev (see https://www.moxio.com/blog/43/ignoring-bulk-change-commits-with-git-blame )
This commit is contained in:
@ -31,40 +31,39 @@
|
||||
using namespace Mu;
|
||||
|
||||
static void
|
||||
test_index_maildir ()
|
||||
test_index_maildir()
|
||||
{
|
||||
allow_warnings();
|
||||
allow_warnings();
|
||||
|
||||
Store store{test_mu_common_get_random_tmpdir(), std::string{MU_TESTMAILDIR}};
|
||||
Store store{test_mu_common_get_random_tmpdir(), std::string{MU_TESTMAILDIR}};
|
||||
Indexer idx{Indexer::Config{}, store};
|
||||
|
||||
g_assert_true (idx.start());
|
||||
while (idx.is_running()) {
|
||||
sleep(1);
|
||||
}
|
||||
g_assert_true(idx.start());
|
||||
while (idx.is_running()) {
|
||||
sleep(1);
|
||||
}
|
||||
|
||||
g_print ("again!\n");
|
||||
g_print("again!\n");
|
||||
|
||||
g_assert_true (idx.start());
|
||||
while (idx.is_running()) {
|
||||
sleep(1);
|
||||
}
|
||||
g_assert_true(idx.start());
|
||||
while (idx.is_running()) {
|
||||
sleep(1);
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char *argv[]) try
|
||||
{
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
main(int argc, char* argv[])
|
||||
try {
|
||||
g_test_init(&argc, &argv, NULL);
|
||||
|
||||
g_test_add_func ("/indexer/index-maildir", test_index_maildir);
|
||||
|
||||
return g_test_run ();
|
||||
g_test_add_func("/indexer/index-maildir", test_index_maildir);
|
||||
|
||||
return g_test_run();
|
||||
|
||||
} catch (const std::runtime_error& re) {
|
||||
std::cerr << re.what() << "\n";
|
||||
return 1;
|
||||
} catch (...) {
|
||||
std::cerr << "caught exception\n";
|
||||
return 1;
|
||||
std::cerr << "caught exception\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user