summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorCraig Small <csmall@dropbear.xyz>2022-03-22 19:53:28 +1100
committerCraig Small <csmall@dropbear.xyz>2022-03-22 19:53:28 +1100
commitd557ad8a6e2c59c727b828008fbee7716cfead07 (patch)
treebcb9c2eca160277f88412056b28b6e558cc9b1ab /testsuite
parenta5e12e768bd19d55ceabe5c379019ef16333bef4 (diff)
downloadprocps-ng-d557ad8a6e2c59c727b828008fbee7716cfead07.tar.gz
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
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/config/unix.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/config/unix.exp b/testsuite/config/unix.exp
index ecdc0bf..08c446f 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
}