summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2002-08-29 14:46:44 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2002-08-29 14:46:44 +0000
commitc16a090ea5c84e5e07df7fc7872da9c3c0b115d2 (patch)
tree5e7a51a5742af0d9c9ec7094a119c34669d0f218
parente1cfb6784fc32fd85947e48689bdef6ccad5b7e5 (diff)
downloadmailutils-c16a090ea5c84e5e07df7fc7872da9c3c0b115d2.tar.gz
mailutils-c16a090ea5c84e5e07df7fc7872da9c3c0b115d2.tar.bz2
(mu_version): Check if MU_CAPABILITY exists. One never knows...
(mu_command): Additional diagnostics (mu_expect_list,mu_test): Commented out extra checks.
-rw-r--r--testsuite/lib/mailutils.exp36
1 files changed, 21 insertions, 15 deletions
diff --git a/testsuite/lib/mailutils.exp b/testsuite/lib/mailutils.exp
index d4dd13695..637a6b832 100644
--- a/testsuite/lib/mailutils.exp
+++ b/testsuite/lib/mailutils.exp
@@ -300,6 +300,10 @@ proc mu_version {} {
if [info exists MU_TOOL_VERSION] {
return
}
+
+ if {![info exists MU_CAPABILITY]} {
+ return
+ }
set output [remote_exec host "$MU_TOOL --show-config-options"]
set flg [split [lindex $output 1]]
@@ -343,6 +347,7 @@ proc mu_command { cmd } {
return -1
}
}
+ verbose "RESULT: $res" 2
return $res
}
@@ -458,12 +463,12 @@ proc mu_expect_list {args} {
} else {
mu_expect $tmt {
-ex "$pat" {
- if { $expect_out(buffer) != $expect_out(0,string) } {
- verbose "Got \"$expect_out(buffer)\"" 2
- verbose "instead of expected \"$pat\\r\\n\"" 2
- set result 1
- break
- }
+# if { $expect_out(buffer) != $expect_out(0,string) } {
+# verbose "Got \"$expect_out(buffer)\"" 2
+# verbose "instead of expected \"$pat\\r\\n\"" 2
+# set result 1
+# break
+# }
}
default {
set result 1
@@ -521,9 +526,10 @@ proc mu_test { args } {
set result -1
if { "${command}" != "" } {
- if { [mu_command "${command}"] != "" } {
+ set res [mu_command "${command}"]
+ if { $res != "" } {
if { ! $do_suppress } {
- perror "Couldn't send \"$command\".";
+ perror "Couldn't send \"$command\": $res.";
}
return $result;
}
@@ -571,12 +577,12 @@ proc mu_test { args } {
} else {
mu_expect $tmt {
-ex "$pat" {
- if { $expect_out(buffer) != $expect_out(0,string) } {
- verbose "Got \"$expect_out(buffer)\"" 2
- verbose "instead of expected \"$pat\\r\\n\"" 2
- set result 1
- break
- }
+# if { $expect_out(buffer) != $expect_out(0,string) } {
+# verbose "Got \"$expect_out(buffer)\"" 2
+# verbose "instead of expected \"$pat\\r\\n\"" 2
+# set result 1
+# break
+# }
}
default {
set result 1
@@ -591,7 +597,7 @@ proc mu_test { args } {
break
}
}
- verbose "RES: $result"
+
if {$result == 0} {
mu_expect $tmt {
-re "\[ \t]*\r\n" { }

Return to:

Send suggestions and report system problems to the System administrator.