From aa097bf31d781da72a8fe1365ae2787ef3a1c0a5 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sun, 5 Jun 2016 09:37:26 +2100 Subject: [PATCH] [PATCH] fixup! test: factor out some boilerplate from C tests --- b3/25c09beb73a0293b18616983b0541aa16ad9de | 69 +++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 b3/25c09beb73a0293b18616983b0541aa16ad9de diff --git a/b3/25c09beb73a0293b18616983b0541aa16ad9de b/b3/25c09beb73a0293b18616983b0541aa16ad9de new file mode 100644 index 000000000..f97b1c2ee --- /dev/null +++ b/b3/25c09beb73a0293b18616983b0541aa16ad9de @@ -0,0 +1,69 @@ +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 6DDB96DE02C3 + for ; Sat, 4 Jun 2016 05:37:42 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.012 +X-Spam-Level: +X-Spam-Status: No, score=-0.012 tagged_above=-999 required=5 + tests=[AWL=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] + 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 oH5r876GZJd7 for ; + Sat, 4 Jun 2016 05:37:34 -0700 (PDT) +Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) + by arlo.cworth.org (Postfix) with ESMTPS id A2A2F6DE02C2 + for ; Sat, 4 Jun 2016 05:37:34 -0700 (PDT) +Received: from remotemail by fethera.tethera.net with local (Exim 4.84) + (envelope-from ) + id 1b9ApN-00056b-Ml; Sat, 04 Jun 2016 08:37:21 -0400 +Received: (nullmailer pid 15548 invoked by uid 1000); + Sat, 04 Jun 2016 12:37:31 -0000 +From: David Bremner +To: David Bremner , Istvan Marko , + Jani Nikula , notmuch@notmuchmail.org +Subject: [PATCH] fixup! test: factor out some boilerplate from C tests +Date: Sat, 4 Jun 2016 09:37:26 -0300 +Message-Id: <1465043846-15506-1-git-send-email-david@tethera.net> +X-Mailer: git-send-email 2.8.1 +In-Reply-To: <1465043356-23420-3-git-send-email-david@tethera.net> +References: <1465043356-23420-3-git-send-email-david@tethera.net> +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +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: Sat, 04 Jun 2016 12:37:42 -0000 + +--- + test/notmuch-test.h | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/test/notmuch-test.h b/test/notmuch-test.h +index e6e1d6c..d39febb 100644 +--- a/test/notmuch-test.h ++++ b/test/notmuch-test.h +@@ -3,7 +3,8 @@ + #include + #include + +-void expect0(int line, notmuch_status_t ret) ++inline static void ++expect0(int line, notmuch_status_t ret) + { + if (ret) { + fprintf (stderr, "line %d: %s\n", line, ret); +-- +2.8.1 + -- 2.26.2