ridiculousfish
2012-05-11 18:59:38 -07:00
parent 2d3d6e1c17
commit c15975113a
5 changed files with 79 additions and 43 deletions

0
tests/test6.err Normal file
View File

11
tests/test6.in Executable file
View File

@@ -0,0 +1,11 @@
# Test that conditions that add or remove completions don't deadlock, etc.
# We actually encountered some case that was effectively like this (Issue 2 in github)
complete --command AAAA -l abcd --condition 'complete -c AAAA -l efgh'
complete -C'AAAA -'
complete -C'AAAA -'
complete --command BBBB -l abcd --condition 'complete -e --command BBBB -l abcd'
complete -C'BBBB -'
complete -C'BBBB -'

4
tests/test6.out Normal file
View File

@@ -0,0 +1,4 @@
--abcd
--efgh
--abcd
--abcd

1
tests/test6.status Normal file
View File

@@ -0,0 +1 @@
0