* test/infra/android/test-controller.el (ats-run-test): Strip
text properties from value string. Inhibit text conversion.
* test/lisp/emacs-lisp/find-func-tests.el
(find-func-tests--locate-symbols):
* test/lisp/emacs-lisp/rmc-tests.el
(test-rmc--add-key-description)
(test-rmc--add-key-description/with-attributes)
(test-rmc--add-key-description/non-graphical-display)
(test-read-multiple-choice, test-read-multiple-choice-help):
Skip on Android in some wise or another.
(cherry picked from commit
2938afab3685f29c80d67f179ce8a935f6c27921)
;; present...
(ert-remote-temporary-file-directory
null-device)
+ (overriding-text-conversion-style nil)
(set-message-function
(lambda (message)
(with-current-buffer temp-buffer
(let ((noninteractive t))
(ert-run-tests-batch ',selector))
(insert "=== Test execution complete ===\n")
- (buffer-string))))))
+ (buffer-substring-no-properties
+ (point-min) (point-max)))))))
(cond ((eq (car rc) 'error)
(error "Error executing `%s-tests.el': %S" test (cdr rc)))
(t (progn
(require 'find-func)
(ert-deftest find-func-tests--locate-symbols ()
+ ;; C source files are unavailable when testing on Android.
+ (skip-when (featurep 'android))
(should (cdr
(find-function-search-for-symbol
#'goto-line nil "simple")))
(eval-when-compile (require 'cl-lib))
(ert-deftest test-rmc--add-key-description ()
+ (skip-when (display-graphic-p))
(cl-letf (((symbol-function 'display-supports-face-attributes-p) (lambda (_ _) t)))
(should (equal (rmc--add-key-description '(?y "yes"))
'(?y . "yes")))
`(?\s . ,(concat (propertize "SPC" 'face 'read-multiple-choice) " foo bar")))))
(ert-deftest test-read-multiple-choice ()
+ (skip-when (display-graphic-p))
(dolist (char '(?y ?n))
(cl-letf* (((symbol-function #'read-key) (lambda () char))
(str (if (eq char ?y) "yes" "no")))