all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#16121: 24.3.50; Type error in ERT
@ 2013-12-12 12:23 Sebastian Wiesner
  2013-12-19  8:15 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Wiesner @ 2013-12-12 12:23 UTC (permalink / raw)
  To: 16121


`ert-select-tests' tries to match a symbol against a string with
`string-match', causing a `wrong-type-argument' error.

The culprit is in the `string' branch of the `cl-etypecase' expression,
where the following expression is used as predicate for
`cl-remove-if-not':

(and (ert-test-name test)
     (string-match selector (ert-test-name test)))

However, `ert-test-name' returns a *symbol* with the name of the test.

The error is fixed by applying `symbol-name' to the return value of
`ert-test-name':

(and (ert-test-name test)
     (string-match selector (symbol-name (ert-test-name test))))





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

* bug#16121: 24.3.50; Type error in ERT
  2013-12-12 12:23 bug#16121: 24.3.50; Type error in ERT Sebastian Wiesner
@ 2013-12-19  8:15 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2013-12-19  8:15 UTC (permalink / raw)
  To: 16121-done

Version: 24.4

Thanks.





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

end of thread, other threads:[~2013-12-19  8:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-12 12:23 bug#16121: 24.3.50; Type error in ERT Sebastian Wiesner
2013-12-19  8:15 ` Glenn Morris

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.