From d557ad8a6e2c59c727b828008fbee7716cfead07 Mon Sep 17 00:00:00 2001 From: Craig Small Date: Tue, 22 Mar 2022 19:53:28 +1100 Subject: [PATCH] testsuite: Return error if tty is TTY In some build systems, such as the Debian pbuilders, the environment is strange. The tty is called "TTY" which causes some of the ps tests to fail. This commit checks for that specific result and returns "" so the tests can be bypassed. Replaces Debian patch fix_checks. References: https://salsa.debian.org/debian/procps/-/blob/debian/2%253.3.17-7/debian/patches/fix_checks --- testsuite/config/unix.exp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testsuite/config/unix.exp b/testsuite/config/unix.exp index ecdc0bf7..08c446f3 100644 --- a/testsuite/config/unix.exp +++ b/testsuite/config/unix.exp @@ -205,5 +205,10 @@ proc get_tty {} { return "" } regexp "/dev/(.+)" $raw_tty > tty + if { $tty == "tty" } { + warning "TTY is tty" + return "" + } + return $tty }