diff options
Diffstat (limited to 'tests/test6.in')
-rwxr-xr-x | tests/test6.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test6.in b/tests/test6.in new file mode 100755 index 00000000..e9b6e9b4 --- /dev/null +++ b/tests/test6.in @@ -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 -' |