Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
685c021d
...
685c021ddafe60746790565b18d041a93263df42
authored
2002-07-13 09:05:44 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Expect the prompt to appear after the last pattern
1 parent
eecbee85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
mail/testsuite/lib/mail.exp
mail/testsuite/lib/mail.exp
View file @
685c021
...
...
@@ -124,7 +124,6 @@ verbose "MAILRC is $srcdir/etc/mail.rc" 2
return 1
}
}
mail_send
"#
\n
"
return 0
}
...
...
@@ -154,14 +153,6 @@ proc mail_send { string } {
}
proc
mail_command
{
cmd
}
{
global mail_prompt
mail_expect 30
{
-re
"
\[\r\n\]
?
${mail_prompt}
$
"
{}
default
{
perror
"mail not initialized"
return 1
}
}
set res
[
mail_send
"
$cmd
\n
"
]
mail_expect 30
{
-ex
"
${cmd}
\r\n
"
{
}
...
...
@@ -267,7 +258,8 @@ proc mail_expect { args } {
proc
default_mail_test
{
args
}
{
global verbose
global mail_prompt
global suppress_flag
;
global suppress_flag
global mail_prompt
upvar timeout timeout
set command
[
lindex
$args
0
]
...
...
@@ -330,6 +322,14 @@ proc default_mail_test { args } {
}
}
}
mail_expect 30
{
-re
"
\[\r\n\]
?
${mail_prompt}
$
"
{}
default
{
perror
"mail not initialized"
return 1
}
}
return
$result
}
...
...
Please
register
or
sign in
to post a comment