all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Compiled vs. interpreted ERT test
@ 2020-02-27 22:19 Joost Kremers
  2020-02-28  1:48 ` Noam Postavsky
  2020-02-28  2:18 ` Stefan Monnier
  0 siblings, 2 replies; 5+ messages in thread
From: Joost Kremers @ 2020-02-27 22:19 UTC (permalink / raw)
  To: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-02-28  8:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-27 22:19 Compiled vs. interpreted ERT test Joost Kremers
2020-02-28  1:48 ` Noam Postavsky
2020-02-28  2:18 ` Stefan Monnier
2020-02-28  3:16   ` Stefan Monnier
2020-02-28  8:07     ` Joost Kremers

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.