set aborted 0
set color 1
-spawn "./aspathtest"
+spawn sh -c "exec ./aspathtest 2>/dev/null"
# proc onetest { test_name note start } {
# proc headerline { line } {
set aborted 0
set color 0
-spawn "./ecommtest"
+spawn sh -c "exec ./ecommtest 2>/dev/null"
# proc simpletest { start } {
set aborted 0
set color 1
-spawn "./testbgpcap"
+spawn sh -c "exec ./testbgpcap 2>/dev/null"
# proc simpletest { start } {
set aborted 0
set color 1
-spawn "./testbgpmpath"
+spawn sh -c "exec ./testbgpmpath 2>/dev/null"
# proc simpletest { start } {
set aborted 0
set color 1
-spawn "./testbgpmpattr"
+spawn sh -c "exec ./testbgpmpattr 2>/dev/null"
# proc simpletest { start } {
set testprefix "tabletest "
set aborted 0
-spawn "./tabletest"
+spawn sh -c "exec ./tabletest 2>/dev/null"
for {set i 0} {$i < 6} {incr i 1} { onesimple "cmp $i" "Verifying cmp"; }
for {set i 0} {$i < 11} {incr i 1} { onesimple "succ $i" "Verifying successor"; }
set testprefix "test-timer-correctness"
set aborted 0
-spawn "./test-timer-correctness"
+spawn sh -c "exec ./test-timer-correctness 2>/dev/null"
onesimple "" "Expected output and actual output match."
set testprefix "testnexthopiter "
set aborted 0
-spawn "./testnexthopiter"
+spawn sh -c "exec ./testnexthopiter 2>/dev/null"
onesimple "simple" "Simple test passed."
onesimple "prng" "PRNG test passed."
set timeout 10
-spawn "./teststream"
+spawn sh -c "exec ./teststream 2>/dev/null"
expect {
"endp: 15, readable: 15, writeable: 1009" { }