--- /dev/null
+Return-Path: <markwalters1009@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id F16C56DE15DD\r
+ for <notmuch@notmuchmail.org>; Fri, 26 Jun 2015 15:51:10 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.126\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.126 tagged_above=-999 required=5 tests=[AWL=0.696, \r
+ DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,\r
+ RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01,\r
+ RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id a8xNv1C3dpbB for <notmuch@notmuchmail.org>;\r
+ Fri, 26 Jun 2015 15:51:09 -0700 (PDT)\r
+Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com\r
+ [209.85.212.179])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 496AA6DE13DB\r
+ for <notmuch@notmuchmail.org>; Fri, 26 Jun 2015 15:50:54 -0700 (PDT)\r
+Received: by wicgi11 with SMTP id gi11so29276023wic.0\r
+ for <notmuch@notmuchmail.org>; Fri, 26 Jun 2015 15:50:52 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=from:to:cc:subject:date:message-id:in-reply-to:references\r
+ :mime-version:content-type:content-transfer-encoding;\r
+ bh=puwZbM9HwNwNk1bmi0al0oWX5JVnuk+1u+sGjQz1hOE=;\r
+ b=av2Ram0KNjK5rVNfLODbvKOvamuw5TjMbxV9iZzaxTEW9u+PcIzWHDampHxTSqXGf6\r
+ lWSPphwwzMZXrlqnOXFkYFExa5AmB1QK39Rf0XdqsvBh/rV4ikWWUj5IlCSsUp4mzcLR\r
+ jDHKf7Ix2kzzx6+1FaoU3bCiFjIi6O+89+RxcG2uRz/LM6EIiITe8ZBRfjYdQiHkSO4l\r
+ ey8pB9HzAGooQ1ynJK4iRpVMi3UKVANlWLknIMf5037ORu3Cuwn4ZAkaec09IxiV+cpk\r
+ FlCtji9s4lua5JgGNLsMvnPPAgoW/6/Skv/Clqun5wz6OJn9as3KS5jTBpHJE+tsbNSo\r
+ 626g==\r
+X-Received: by 10.194.94.101 with SMTP id db5mr6628146wjb.91.1435359052589;\r
+ Fri, 26 Jun 2015 15:50:52 -0700 (PDT)\r
+Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162])\r
+ by mx.google.com with ESMTPSA id pd7sm52250304wjb.27.2015.06.26.15.50.51\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Fri, 26 Jun 2015 15:50:52 -0700 (PDT)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 4/4] test: tree: fix and a test for tree sort order changes\r
+Date: Fri, 26 Jun 2015 23:50:35 +0100\r
+Message-Id: <1435359035-6767-5-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 2.1.4\r
+In-Reply-To: <1435359035-6767-1-git-send-email-markwalters1009@gmail.com>\r
+References: <1435359035-6767-1-git-send-email-markwalters1009@gmail.com>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=UTF-8\r
+Content-Transfer-Encoding: 8bit\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 26 Jun 2015 22:51:11 -0000\r
+\r
+We add a sort order test for tree view. Also, since tree-view inherits\r
+the sort order from search view when called with\r
+notmuch-tree-from-search-current-query one of the tests coming from\r
+search now has oldest-first sort order so update it appropriately.\r
+---\r
+ test/T460-emacs-tree.sh | 11 ++++-\r
+ .../notmuch-tree-tag-inbox-oldest-first | 53 ++++++++++++++++++++++\r
+ 2 files changed, 63 insertions(+), 1 deletion(-)\r
+ create mode 100644 test/tree.expected-output/notmuch-tree-tag-inbox-oldest-first\r
+\r
+diff --git a/test/T460-emacs-tree.sh b/test/T460-emacs-tree.sh\r
+index 8e9f37c..ae075c5 100755\r
+--- a/test/T460-emacs-tree.sh\r
++++ b/test/T460-emacs-tree.sh\r
+@@ -23,6 +23,15 @@ test_emacs '(notmuch-tree "tag:inbox")\r
+ (delete-other-windows)'\r
+ test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox\r
+ \r
++test_begin_subtest "Oldest first notmuch-tree view in emacs"\r
++test_emacs '(notmuch-tree "tag:inbox")\r
++ (notmuch-test-wait)\r
++ (notmuch-tree-toggle-order)\r
++ (notmuch-test-wait)\r
++ (test-output)\r
++ (delete-other-windows)'\r
++test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox-oldest-first\r
++\r
+ # In the following tag tests we make sure the display is updated\r
+ # correctly and, in a separate test, that the database is updated\r
+ # correctly.\r
+@@ -98,7 +107,7 @@ test_emacs '(notmuch-hello)\r
+ (notmuch-test-wait)\r
+ (test-output)\r
+ (delete-other-windows)'\r
+-test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox\r
++test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox-oldest-first\r
+ \r
+ test_begin_subtest "Tree view of a single thread (from search)"\r
+ test_emacs '(notmuch-hello)\r
+diff --git a/test/tree.expected-output/notmuch-tree-tag-inbox-oldest-first b/test/tree.expected-output/notmuch-tree-tag-inbox-oldest-first\r
+new file mode 100644\r
+index 0000000..588fc58\r
+--- /dev/null\r
++++ b/test/tree.expected-output/notmuch-tree-tag-inbox-oldest-first\r
+@@ -0,0 +1,53 @@\r
++ 2009-11-17 Mikhail Gusarov ┬►[notmuch] [PATCH 1/2] Close message file after parsing message headers (inbox unread)\r
++ 2009-11-17 Mikhail Gusarov ├─►[notmuch] [PATCH 2/2] Include <stdint.h> to get uint32_t in C++ file with gcc 4.4 (inbox unread)\r
++ 2009-11-17 Carl Worth ╰┬►[notmuch] [PATCH 1/2] Close message file after parsing message headers (inbox unread)\r
++ 2009-11-17 Keith Packard ╰┬► ... (inbox unread)\r
++ 2009-11-18 Carl Worth ╰─► ... (inbox unread)\r
++ 2009-11-17 Lars Kellogg-Stedman ┬►[notmuch] Working with Maildir storage? (inbox signed unread)\r
++ 2009-11-17 Mikhail Gusarov ├┬► ... (inbox signed unread)\r
++ 2009-11-17 Lars Kellogg-Stedman │╰┬► ... (inbox signed unread)\r
++ 2009-11-17 Mikhail Gusarov │ ├─► ... (inbox unread)\r
++ 2009-11-17 Keith Packard │ ╰┬► ... (inbox unread)\r
++ 2009-11-18 Lars Kellogg-Stedman │ ╰─► ... (inbox signed unread)\r
++ 2009-11-18 Carl Worth ╰─► ... (inbox unread)\r
++ 2009-11-17 Alex Botero-Lowry ┬►[notmuch] preliminary FreeBSD support (attachment inbox unread)\r
++ 2009-11-17 Carl Worth ╰─► ... (inbox unread)\r
++ 2009-11-17 Mikhail Gusarov ─►[notmuch] [PATCH] Handle rename of message file (inbox unread)\r
++ 2009-11-17 Keith Packard ┬►[notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (inbox unread)\r
++ 2009-11-18 Carl Worth ╰─►[notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (inbox unread)\r
++ 2009-11-17 Jan Janak ┬►[notmuch] [PATCH] Older versions of install do not support -C. (inbox unread)\r
++ 2009-11-18 Carl Worth ╰─► ... (inbox unread)\r
++ 2009-11-17 Jan Janak ┬►[notmuch] What a great idea! (inbox unread)\r
++ 2009-11-17 Jan Janak ├─► ... (inbox unread)\r
++ 2009-11-18 Carl Worth ╰─► ... (inbox unread)\r
++ 2009-11-17 Israel Herraiz ┬►[notmuch] New to the list (inbox unread)\r
++ 2009-11-18 Keith Packard ├─► ... (inbox unread)\r
++ 2009-11-18 Carl Worth ╰─► ... (inbox unread)\r
++ 2009-11-17 Adrian Perez de Cast ┬►[notmuch] Introducing myself (inbox signed unread)\r
++ 2009-11-18 Keith Packard ├─► ... (inbox unread)\r
++ 2009-11-18 Carl Worth ╰─► ... (inbox unread)\r
++ 2009-11-17 Aron Griffis ┬►[notmuch] archive (inbox unread)\r
++ 2009-11-18 Keith Packard ╰┬► ... (inbox unread)\r
++ 2009-11-18 Carl Worth ╰─► ... (inbox unread)\r
++ 2009-11-17 Ingmar Vanhassel ┬►[notmuch] [PATCH] Typsos (inbox unread)\r
++ 2009-11-18 Carl Worth ╰─► ... (inbox unread)\r
++ 2009-11-18 Alex Botero-Lowry ┬►[notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop (attachment inbox unread)\r
++ 2009-11-18 Carl Worth ╰─►[notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop (inbox unread)\r
++ 2009-11-18 Lars Kellogg-Stedman ┬►[notmuch] "notmuch help" outputs to stderr? (attachment inbox signed unread)\r
++ 2009-11-18 Lars Kellogg-Stedman ╰─► ... (attachment inbox signed unread)\r
++ 2009-11-18 Stewart Smith ─►[notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++ libs. (inbox unread)\r
++ 2009-11-18 Stewart Smith ─►[notmuch] [PATCH 2/2] Read mail directory in inode number order (inbox unread)\r
++ 2009-11-18 Stewart Smith ─►[notmuch] [PATCH] count_files: sort directory in inode order before statting (inbox unread)\r
++ 2009-11-18 Jjgod Jiang ┬►[notmuch] Mac OS X/Darwin compatibility issues (inbox unread)\r
++ 2009-11-18 Alexander Botero-Low ╰┬► ... (inbox unread)\r
++ 2009-11-18 Jjgod Jiang ╰┬► ... (inbox unread)\r
++ 2009-11-18 Alexander Botero-Low ╰─► ... (inbox unread)\r
++ 2009-11-18 Jan Janak ─►[notmuch] [PATCH] notmuch new: Support for conversion of spool subdirectories into tags (inbox unread)\r
++ 2009-11-18 Rolland Santimano ─►[notmuch] Link to mailing list archives ? (inbox unread)\r
++ 2009-11-18 Alexander Botero-Low ─►[notmuch] request for pull (inbox unread)\r
++ 2009-11-18 Keith Packard ┬►[notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap (inbox unread)\r
++ 2009-11-18 Alexander Botero-Low ╰─►[notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap (inbox unread)\r
++ 2009-11-18 Chris Wilson ─►[notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once (inbox unread)\r
++ 2010-12-16 Olivier Berger ─►Essai accentué (inbox unread)\r
++ 2010-12-29 François Boulogne ─►[aur-general] Guidelines: cp, mkdir vs install (inbox unread)\r
++End of search results.\r
+-- \r
+2.1.4\r
+\r