From 4050148a4533e8a79cef0d7dcd0c058d78c48a31 Mon Sep 17 00:00:00 2001 From: Craig Small Date: Sat, 9 May 2015 17:48:12 +1000 Subject: 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. --- testsuite/config/unix.exp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'testsuite/config') 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 +} -- cgit v1.2.1