Skip to content

Commit 52d05a6

Browse files
committed
(test suite): Remove Bash::Completion.3pm.gz from git, create on the fly
Refs #55, invalid chars in file names on Windows
1 parent fec077d commit 52d05a6

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

test/fixtures/man/man3/Bash::Completion.3pm.gz

Whitespace-only changes.

test/lib/completions/man.exp

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
proc setup {} {
2-
assert_bash_exec "export MANPATH=$::srcdirabs/fixtures/man"
2+
assert_bash_exec "export MANPATH=$::srcdirabs/fixtures/man:$::srcdirabs/tmp/man"
33
save_env
4+
5+
if {! [is_cygwin]} { # Colon not allowed in filenames
6+
assert_bash_exec {(cd $TESTDIR/tmp && mkdir -p man/man3 && touch man/man3/Bash::Completion.3pm.gz || true)}
7+
}
48
}
59

610

711
proc teardown {} {
812
assert_env_unmodified {/OLDPWD/d}
13+
14+
if {! [is_cygwin]} {
15+
assert_bash_exec {(cd $TESTDIR/tmp && rm -r man || true)}
16+
}
917
}
1018

1119

@@ -24,10 +32,10 @@ assert_complete_dir oo.1 "man man1/f" $::srcdir/fixtures/man
2432
sync_after_int
2533

2634

27-
assert_complete "Bash::Completion" "man Bash::C"
28-
29-
30-
sync_after_int
35+
if {! [is_cygwin]} {
36+
assert_complete "Bash::Completion" "man Bash::C"
37+
sync_after_int
38+
}
3139

3240

3341
assert_complete_dir "man/quux.8" "man man/" $::srcdir/fixtures/man

0 commit comments

Comments
 (0)