summaryrefslogtreecommitdiff
path: root/testsuite/config
diff options
context:
space:
mode:
authorCraig Small <csmall@enc.com.au>2015-05-09 17:48:12 +1000
committerCraig Small <csmall@enc.com.au>2015-05-09 17:48:12 +1000
commit4050148a4533e8a79cef0d7dcd0c058d78c48a31 (patch)
tree5111d58cea4cf183adffba17a70e92c3eec2b627 /testsuite/config
parentc7abb6a6ed67fa970051bca2d2f2596b7118b888 (diff)
downloadprocps-ng-4050148a4533e8a79cef0d7dcd0c058d78c48a31.tar.gz
Fix some sched and tty tests
The ps sched test has been disabled. There are too many odd build farms this fails in strange ways. Other odd build farms have no tty and so some tests check for no tty and skip if not found.
Diffstat (limited to 'testsuite/config')
-rw-r--r--testsuite/config/unix.exp9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/config/unix.exp b/testsuite/config/unix.exp
index 522efb1..1318e9a 100644
--- a/testsuite/config/unix.exp
+++ b/testsuite/config/unix.exp
@@ -146,3 +146,12 @@ proc kill_testproc { } {
kill_process $testproc2_pid
file delete $testproc_path
}
+
+proc get_tty {} {
+ if { [catch { set raw_tty [ exec tty ] } msg]} {
+ warning "No TTY found"
+ return ""
+ }
+ regexp "/dev/(.+)" $raw_tty > tty
+ return $tty
+}