From df4c66f85d4aa05c462ad119c6dad3afa421f6f2 Mon Sep 17 00:00:00 2001 From: uncrustify Date: Sat, 13 Mar 2021 08:45:34 -0400 Subject: [PATCH] test: run uncrustify This is the result of running: $ uncrustify --replace --config ../devel/uncrustify.cfg *.cc *.c *.h in the test directory. --- test/ghost-report.cc | 1 + test/make-db-version.cc | 1 + test/random-corpus.c | 1 + 3 files changed, 3 insertions(+) diff --git a/test/ghost-report.cc b/test/ghost-report.cc index fad9a71d..9d9e7a7f 100644 --- a/test/ghost-report.cc +++ b/test/ghost-report.cc @@ -12,5 +12,6 @@ main (int argc, char **argv) } Xapian::Database db (argv[1]); + std::cout << db.get_termfreq ("Tghost") << std::endl; } diff --git a/test/make-db-version.cc b/test/make-db-version.cc index 78feaf72..238584e2 100644 --- a/test/make-db-version.cc +++ b/test/make-db-version.cc @@ -17,6 +17,7 @@ main (int argc, char **argv) } std::string nmpath (argv[1]); + nmpath += "/.notmuch"; if (mkdir (nmpath.c_str (), 0777) < 0) { perror (("failed to create " + nmpath).c_str ()); diff --git a/test/random-corpus.c b/test/random-corpus.c index ff413252..d0354e35 100644 --- a/test/random-corpus.c +++ b/test/random-corpus.c @@ -190,6 +190,7 @@ main (int argc, char **argv) srandom (seed); int count; + for (count = 0; count < num_messages; count++) { int j; /* explicitly allow zero tags */