From 5c0591e943a83ac6b333ed01c45480ca7cac2c6f Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Sun, 6 Sep 2015 12:23:57 +0300 Subject: [PATCH] Re: [PATCH 1/2] test: fix whitespace/indentation in symbol-test --- 3e/ca1828b0a33e62ac46f74521e71da47f643ea4 | 113 ++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 3e/ca1828b0a33e62ac46f74521e71da47f643ea4 diff --git a/3e/ca1828b0a33e62ac46f74521e71da47f643ea4 b/3e/ca1828b0a33e62ac46f74521e71da47f643ea4 new file mode 100644 index 000000000..c34b2ff7d --- /dev/null +++ b/3e/ca1828b0a33e62ac46f74521e71da47f643ea4 @@ -0,0 +1,113 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 399286DE1AEA + for ; Sun, 6 Sep 2015 02:25:27 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.807 +X-Spam-Level: +X-Spam-Status: No, score=0.807 tagged_above=-999 required=5 tests=[AWL=0.155, + SPF_NEUTRAL=0.652] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 5nlXCF0pOJbo for ; + Sun, 6 Sep 2015 02:25:24 -0700 (PDT) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by arlo.cworth.org (Postfix) with ESMTP id 596D46DE1AD8 + for ; Sun, 6 Sep 2015 02:25:24 -0700 (PDT) +Received: from guru.guru-group.fi (localhost [IPv6:::1]) + by guru.guru-group.fi (Postfix) with ESMTP id 03268100033; + Sun, 6 Sep 2015 12:23:58 +0300 (EEST) +From: Tomi Ollila +To: Jani Nikula , notmuch@notmuchmail.org +Subject: Re: [PATCH 1/2] test: fix whitespace/indentation in symbol-test +In-Reply-To: <1441392555-20056-1-git-send-email-jani@nikula.org> +References: <1441392555-20056-1-git-send-email-jani@nikula.org> +User-Agent: Notmuch/0.20.2+68~g0c35549 (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-unknown-linux-gnu) +X-Face: HhBM'cA~ +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.18 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sun, 06 Sep 2015 09:25:27 -0000 + +On Fri, Sep 04 2015, Jani Nikula wrote: + +> Not of much consequence, but makes it nicer to do further edits. +> --- + +These 2 patches LGTM ! +1! :D + +> test/symbol-test.cc | 34 ++++++++++++++++++---------------- +> 1 file changed, 18 insertions(+), 16 deletions(-) +> +> diff --git a/test/symbol-test.cc b/test/symbol-test.cc +> index fb77b418a1a8..77dbc1af44b2 100644 +> --- a/test/symbol-test.cc +> +++ b/test/symbol-test.cc +> @@ -3,23 +3,25 @@ +> #include +> #include +> +> +int main (int argc, char** argv) +> +{ +> + notmuch_database_t *notmuch; +> + char *message = NULL; +> +> -int main(int argc, char** argv) { +> - notmuch_database_t *notmuch; +> - char *message = NULL; +> + if (notmuch_database_open_verbose (argv[1], NOTMUCH_DATABASE_MODE_READ_ONLY, +> + ¬much, &message)) { +> + if (message) { +> + fputs (message, stderr); +> + free (message); +> + } +> + } +> +> - if (notmuch_database_open_verbose (argv[1], NOTMUCH_DATABASE_MODE_READ_ONLY, ¬much, &message)) +> - if (message) { +> - fputs (message, stderr); +> - free (message); +> - } +> + try { +> + (void) new Xapian::WritableDatabase (argv[2], Xapian::DB_OPEN); +> + } catch (const Xapian::Error &error) { +> + printf("caught %s\n", error.get_msg().c_str()); +> + return 0; +> + } +> +> - try { +> - (void) new Xapian::WritableDatabase(argv[2], Xapian::DB_OPEN); +> - } catch (const Xapian::Error &error) { +> - printf("caught %s\n", error.get_msg().c_str()); +> - return 0; +> - } +> - +> - return 1; +> + return 1; +> } +> -- +> 2.1.4 +> +> _______________________________________________ +> notmuch mailing list +> notmuch@notmuchmail.org +> http://notmuchmail.org/mailman/listinfo/notmuch -- 2.26.2