From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Compiled vs. interpreted ERT test Date: Thu, 27 Feb 2020 23:19:03 +0100 Message-ID: <87r1yfr7vs.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="108553"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.3.8; emacs 26.3 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 27 23:19:33 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j7RVF-000S9b-7Q for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 27 Feb 2020 23:19:33 +0100 Original-Received: from localhost ([::1]:39192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7RVE-000093-8E for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 27 Feb 2020 17:19:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48067) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7RUr-00008D-EK for help-gnu-emacs@gnu.org; Thu, 27 Feb 2020 17:19:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j7RUq-0001JL-Df for help-gnu-emacs@gnu.org; Thu, 27 Feb 2020 17:19:09 -0500 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:37075) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j7RUq-0001IG-4v for help-gnu-emacs@gnu.org; Thu, 27 Feb 2020 17:19:08 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 7886B22171 for ; Thu, 27 Feb 2020 17:19:07 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 27 Feb 2020 17:19:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= from:to:subject:date:message-id:mime-version:content-type; s= fm2; bh=EDvshHcoe55EBlk2NDlfM5Ivssw2OjfNTnWof40hTSI=; b=k81HWfJX APepmG57Fg97WE7Oncjv65cg5sEMRaFtejOqKly/ZrlmPQoba3R5lswT/RicahG2 /5JPZFv9nZ7oegntZDk1m0qOjIC4myfDzZVX8RLJPV+Eoi+W6yiSaEdnbHVrosam 8h8YYoBdjU7fFp3ps9nMWsW9efIr7M0gy+3Tk5JYU91PJbiIoCGD79LHPCR2sdCT Gb+won8BFIktOA4nPTS40UMyLT8TrQ/Wr/Ue2J+MM+K0qk6jvGzbibi7PlnEa/DI 7oIP6ppiQivoHkL0ZQin1d+2Mk/r61OAqpfH9swID8SwRk0ggqXzyKCP9b7CrU8a sRMQbGnaiz1CqQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=EDvshHcoe55EBlk2NDlfM5Ivssw2O jfNTnWof40hTSI=; b=3V6iRXVKrTWcyXpHwjo8f6Cff4ykRh65dXpMw2707OjiL n5gzkZMfGxGvNwGo+s9eF0gTzxRi5lANPHtLixO/Eic94F1wHSs7qN6JPeqzORyS KVlvJQhRjI59aGPURd5tG6F0ofAmEN2Xm+u+M7rpAJTCwTijG8DcdB6QnIViI/qZ DvBypZJzYRHkuTSarx08BpXHPPMj2RyC5+hbIFbEBG6voZmp9nW1X++7Mn2+UovM HeErUy3oxPygg85OxRW7zPSKtg6c/b8dIAua8gchz7e/VqSHa2taBZzVjmbrK4Le WcSO5SrCRsq9RvU6p8vmdIkROiC12XbtGRJKTmILg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrleeigdduheejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpegfhffvufffkfggtgesthdtredttd ertdenucfhrhhomheplfhoohhsthcumfhrvghmvghrshcuoehjohhoshhtkhhrvghmvghr shesfhgrshhtmhgrihhlrdhfmheqnecuffhomhgrihhnpehgihhthhhusgdrtghomhenuc fkphepleehrdeltddrvddtuddriedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfh hm X-ME-Proxy: Original-Received: from Swift.fastmail.com (unknown [95.90.201.62]) by mail.messagingengine.com (Postfix) with ESMTPA id E1EE23280067 for ; Thu, 27 Feb 2020 17:19:06 -0500 (EST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.26 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122493 Archived-At: Hi list, I learned about the package `with-simulated-input`[1] which provides a macro of the same name that's intended for writing automated tests for code that takes user input. When trying to apply this in some ERT test, I found that it works fine if the tests are interpreted (e.g., loaded with `eval-defun`), but not when the test is byte-compiled. Byte-compiled tests fail with the following error: ``` (wrong-type-argument listp #[nil "\300\207" [t] 1]) ``` I opened an issue on the package's Github page but the maintainer says he doesn't know how to debug this.[2] So I'm coming here in the hopes someone has an idea or a suggestion how to debug this. TIA Joost Footnotes: [1] https://github.com/DarwinAwardWinner/with-simulated-input [2] https://github.com/DarwinAwardWinner/with-simulated-input/issues/6 -- Joost Kremers Life has its moments