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.
This commit is contained in:
Craig Small committed 2015-05-09 17:48:12 +10:00
1 parent c7abb6a6ed
commit 4050148a45
5 files changed
+26 -15

No files matched your search

+9
View File
@@ -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
}