(testsuite) Drop ending block comments

Instead of writing `}; # if', write just `}' as was discussed here:

    http://www.mail-archive.com/bash-completion-devel@lists.alioth.debian.org/msg01815.html
This commit is contained in:
Freddy Vulto 2010-06-18 17:21:38 +02:00
parent 7ed79a9245
commit 51b3e20ebc
363 changed files with 904 additions and 906 deletions

View File

@ -1,23 +1,23 @@
# Set default expect fallback routines
# Set default expect fallback routines
expect_after {
eof {
if {[info exists test]} {
fail "$test at eof"
} else {
fail "[info level 1] at eof"
}; # if
}; # eof
}
}
timeout {
if {[info exists test]} {
fail "$test at timeout"
} else {
fail "[info level 1] at timeout"
}; # if
}; # timeout
}; # expect_after()
}
}
}
# Call tool_start(), if available
# Call tool_start(), if available
if { [info procs "${tool}_start"] != "" } {
${tool}_start
}; # if
}

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,13 +1,13 @@
proc setup {} {
save_env
assert_bash_exec "touch fixtures/shared/default/t.pdf"; # Create temporary files
}; # setup()
}
proc teardown {} {
assert_bash_exec "rm fixtures/shared/default/t.pdf"; # Remove temporary files
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -3,13 +3,13 @@ proc setup {} {
assert_bash_exec "alias foo=bar"
assert_bash_exec "alias bar='foo foo'"
save_env
}; # setup()
}
proc teardown {} {
assert_bash_exec "unalias -a"; # Remove all aliases
assert_env_unmodified
}; # teardown()
}
setup
@ -34,7 +34,7 @@ expect {
-re "^alias foo\b\b\bfoo=foo\b\b\b$" { fail "$test: Wrong cursor position" }
-re /@ { unresolved "$test" }
default { unresolved "$test" }
}; # expect
}
sync_after_int

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup
@ -22,7 +22,7 @@ if {[assert_exec {lp -H hold fixtures/shared/default/foo} job "" "untested"]} {
assert_complete $jobs "cancel "
# Remove/cancel the test print job
assert_exec "cancel $job_id"
}; # if
}
sync_after_int

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup
@ -29,7 +29,7 @@ expect {
-re "^cd fixtures/shared/default/foo\b\b\bfoo.d/foo\b\b\b$" { fail "$test: Wrong cursor position" }
-re /@ { unresolved "$test at prompt" }
default { unresolved "$test" }
}; # expect
}
sync_after_int

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,10 +1,10 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,7 +1,7 @@
proc setup {} {
save_env
assert_bash_exec {OLDHOME=$HOME ; HOME=$TESTDIR/fixtures/cvs}
}; # setup()
}
proc teardown {} {
@ -9,7 +9,7 @@ proc teardown {} {
assert_env_unmodified {
/OLDHOME=/d
}
}; # teardown()
}
setup
@ -27,7 +27,7 @@ send "$cmd\t"
expect {
-re "^$cmd\r\n.*:pserver:.*\r\n/@$cmd:pserver:.*$" { pass "$test" }
default { fail "$test" }
}; # expect
}
sync_after_int

View File

@ -1,7 +1,7 @@
proc setup {} {
save_env
assert_bash_exec {OLDHOME=$HOME ; HOME=$TESTDIR/fixtures/cvs}
}; # setup()
}
proc teardown {} {
@ -9,7 +9,7 @@ proc teardown {} {
assert_env_unmodified {
/OLDHOME=/d
}
}; # teardown()
}
setup
@ -27,7 +27,7 @@ send "$cmd\t"
expect {
-re "^$cmd\r\n.*:pserver:.*\r\n/@$cmd:pserver:.*$" { pass "$test" }
default { fail "$test" }
}; # expect
}
sync_after_int

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup
@ -13,7 +13,7 @@ setup
if {[assert_exec {dcop} words]} {
assert_complete $words "dcop "
}; # if
}
sync_after_int

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup
@ -24,7 +24,7 @@ expect -ex "$cmd"
expect {
-re "^=$" { pass $test }
-re {^\\=$} { xfail $test }
}; # expect
}
sync_after_int

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup
@ -20,7 +20,7 @@ sync_after_int
# Build list of installed packages
if {[assert_exec {dpkg --get-selections | command grep \[\[:space:\]\]install$ | cut -f1} packages]} {
assert_complete $packages "dpkg -L "
}; # if
}
sync_after_int

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup
@ -13,7 +13,7 @@ setup
if {[assert_exec {env --help} "" "" "unsupported"]} {
assert_complete_any "env --"
}; # if
}
sync_after_int

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified {/OLDPWD=/d}
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup
@ -13,7 +13,7 @@ setup
if {[assert_exec {expand --help} "" "" "unsupported"]} {
assert_complete_any "expand --"
}; # if
}
sync_after_int

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified {/OLDPWD=/d}
}; # teardown()
}
setup
@ -50,28 +50,26 @@ sync_after_int
set test "-uid should complete uids"
# Complete
set cmd "find -uid "
send "$cmd\t"
expect {
-re "$cmd\r\n\\d+.*/@$cmd$" { pass "$test" }
-re /@ { unresolved "$test at prompt" }
-re eof { unresolved "eof" }
}; # expect
}
sync_after_int
set test "-gid should complete gids"
# Complete
set cmd "find -gid "
send "$cmd\t"
expect {
-re "$cmd\r\n\\d+.*/@$cmd$" { pass "$test" }
-re /@ { unresolved "$test at prompt" }
-re eof { unresolved "eof" }
}; # expect
}
sync_after_int

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup
@ -16,7 +16,7 @@ set test "Tab should complete usernames"
set users {}
foreach u [exec bash -c "compgen -A user"] {
lappend users $u
}; # foreach
}
assert_complete $users "finger " $test
@ -45,9 +45,9 @@ foreach h [get_known_hosts] {
if {$first == $char && [lsearch -exact $hosts "test@$h"] == -1} {
# Prefix hosts with username 'test@'
lappend hosts "test@$h"
}; # if
}; # if
}; # foreach
}
}
}
assert_complete $hosts "finger test@$char" $test

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup
@ -13,7 +13,7 @@ setup
if {[assert_exec {fmt --help} "" "" "unsupported"]} {
assert_complete_any "fmt -"
}; # if
}
sync_after_int

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup
@ -13,7 +13,7 @@ setup
if {[assert_exec {fold --help} "" "" "unsupported"]} {
assert_complete_any "fold --"
}; # if
}
sync_after_int

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

View File

@ -1,11 +1,11 @@
proc setup {} {
save_env
}; # setup()
}
proc teardown {} {
assert_env_unmodified
}; # teardown()
}
setup

Some files were not shown because too many files have changed in this diff Show More