]> git.eshelyaron.com Git - emacs.git/commitdiff
; * test/lisp/tab-bar-tests.el (tab-bar-tests-quit-restore-window): Comment.
authorJuri Linkov <juri@linkov.net>
Fri, 18 Apr 2025 06:42:31 +0000 (09:42 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 21 Apr 2025 20:33:32 +0000 (22:33 +0200)
(cherry picked from commit a731dd63fb259758fb52630f4f499357cbc727c0)

test/lisp/tab-bar-tests.el

index dc8bb2ecc68f2385e24806cf681c3ad2c740cd58..06a52ed42b117ae6552338218289d19c7652aa72 100644 (file)
   (tab-bar-tabs-set nil))
 
 (ert-deftest tab-bar-tests-quit-restore-window ()
+  ;; Emba runs the container without "--tty"
+  ;; (the environment variable "TERM" is nil), and this
+  ;; test fails with '(error "Could not open file: /dev/tty")'.
+  ;; Therefore skip it unless it can use '(tty-type . "linux")'.
   (skip-unless (or (and (eq system-type 'gnu/linux) (getenv "TERM"))
                    (and (not noninteractive)
                         (eq system-type 'windows-nt))))