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
3345fccc
...
3345fccc9e827f05ab68626e351a39bcf525a172
authored
2002-09-01 22:06:10 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Couple of fixes.
1 parent
0325bb6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
testsuite/lib/mailutils.exp
testsuite/lib/mailutils.exp
View file @
3345fcc
...
...
@@ -185,7 +185,7 @@ proc mu_exec {args} {
}
# Pity, dejagnu provides no way to retrieve exit status of the process.
# This ugl
i
construction is used to work around this. Hopefully, it
# This ugl
y
construction is used to work around this. Hopefully, it
# should execute on any decent platform...
set cmd
"sh -c
\"
$
MU_TOOL
$sw
\;
echo
\$
?
\"
"
verbose
"Executing
$cmd
"
...
...
@@ -301,10 +301,6 @@ proc mu_version {} {
return
}
if
{
!
[
info
exists MU_CAPABILITY
]}
{
return
}
set output
[
remote_exec host
"
$
MU_TOOL --show-config-options"
]
set flg
[
split
[
lindex
$output
1
]]
for
{
set
i 0
}
{
$i
<
[
llength
$flg
]}
{
incr
i
}
{
...
...
@@ -314,14 +310,18 @@ proc mu_version {} {
set MU_CAPABILITY
([
lindex
$flg
$i
])
1
}
}
set MU_TOOL_VERSION $MU_CAPABILITY
(
VERSION
)
if
[
info
exists MU_CAPABILITY
(
VERSION
)]
{
set MU_TOOL_VERSION $MU_CAPABILITY
(
VERSION
)
}
else
{
set MU_TOOL_VERSION
"UNKNOWN"
}
}
proc
mu_check_capability
{
args
}
{
global MU_CAPABILITY
set name
[
lindex
$args
0
]
if
!
[
info
exists MU_CAPABILITY
(
$name
)]
{
if
{
!
[
info
exists MU_CAPABILITY
]
|| !
[
info
exists MU_CAPABILITY
(
$name
)]}
{
return 0
}
else
{
return $MU_CAPABILITY
(
$name
)
...
...
Please
register
or
sign in
to post a comment