test suite crash with TERM=dumb
authorDavid Bremner <david@tethera.net>
Mon, 21 Jan 2013 12:24:42 +0000 (08:24 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:53:15 +0000 (09:53 -0800)
02/6d5ccf3451c4117972b83488dbb365c99bd1e2 [new file with mode: 0644]

diff --git a/02/6d5ccf3451c4117972b83488dbb365c99bd1e2 b/02/6d5ccf3451c4117972b83488dbb365c99bd1e2
new file mode 100644 (file)
index 0000000..111fc68
--- /dev/null
@@ -0,0 +1,100 @@
+Return-Path: <bremner@unb.ca>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 9318F431FAF\r
+       for <notmuch@notmuchmail.org>; Mon, 21 Jan 2013 04:26:00 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 6kyXtqjbbNNS for <notmuch@notmuchmail.org>;\r
+       Mon, 21 Jan 2013 04:25:56 -0800 (PST)\r
+Received: from tesseract.cs.unb.ca (tesseract.cs.unb.ca [131.202.240.238])\r
+       (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 83449431FBD\r
+       for <notmuch@notmuchmail.org>; Mon, 21 Jan 2013 04:25:56 -0800 (PST)\r
+Received: from fctnnbsc30w-156034082078.dhcp-dynamic.fibreop.nb.bellaliant.net\r
+       ([156.34.82.78] helo=zancas.localnet)\r
+       by tesseract.cs.unb.ca with esmtpsa\r
+       (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80)\r
+       (envelope-from <bremner@unb.ca>)\r
+       id 1TxGRi-00079i-4X; Mon, 21 Jan 2013 08:25:50 -0400\r
+Received: from bremner by zancas.localnet with local (Exim 4.80)\r
+       (envelope-from <bremner@unb.ca>)\r
+       id 1TxGQd-00045c-7V; Mon, 21 Jan 2013 08:24:43 -0400\r
+From: David Bremner <david@tethera.net>\r
+To: "notmuch mailing list" <notmuch@notmuchmail.org>\r
+Subject: test suite crash with TERM=dumb\r
+User-Agent: Notmuch/0.15 (http://notmuchmail.org) Emacs/24.2.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Mon, 21 Jan 2013 08:24:42 -0400\r
+Message-ID: <87obgibu5x.fsf@zancas.localnet>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+X-Spam_bar: -\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\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: Mon, 21 Jan 2013 12:26:00 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+\r
+In 0.15 (or current master) try running=20\r
+\r
+  % TERM=3Ddump make test\r
+\r
+At least for me and the Debian build daemons, this causes the run to end\r
+with\r
+\r
+  PASS   Show message: json, utf-8\r
+  FATAL: Unexpected exit with code 1\r
+  make: *** [test] Error 124\r
+\r
+This is much worse than a test failure since it causes the build to exit\r
+with non-zero status.\r
+\r
+I have temporarily disabled running the test suite in the debian\r
+packaging, but this is obviously not a good permanent solution.\r
+\r
+Apparently the problem is on the line=20\r
+\r
+ TERM=3D$ORIGINAL_TERM dtach -n "$TEST_TMPDIR/emacs-dtach-socket.$$"=20\r
+\r
+It would be easy to hardcode the TERM for dtach, but I'm not sure if\r
+there is some advantage to testing with the user's actual term? Also, I\r
+guess we'd have to be careful the chosen terminal type is portable.\r
+\r
+d\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.12 (GNU/Linux)\r
+\r
+iJwEAQECAAYFAlD9M4oACgkQTiiN/0Um85lJ0AP/Z5U20RNR5ku4fwkoMxOfQhOE\r
+pE0CKjCVMoN0lfs+G9dGijPNBuYH1DYI/0nX3/d/R3c+F1xNtCAPHEEqa3bC7Wsb\r
+9uIvP+pdW2Cj+LnxizWTJbMs0jYKKMyj1DMQen1TwtZ12RlLGSchUa7vGytyt179\r
+YnotLUcRYX20PyaAzNA=\r
+=/que\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r