Debian Patches

Status for crazy-complete/0.3.7-4

Patch Description Author Forwarded Bugs Origin Last update
0001-Make-sure-the-terminal-is-correctly-cleared-before-r.patch Make sure the terminal is correctly cleared before running test
By running ^U in addition to ^C, we make sure that the current prompt is
empty before running "clear" on fish. This was (one of?) the reason why
sometimes multiple calls to clear were needed.
We also wait for an empty prompt before running "clear" in addition to
after, to make sure that the prompt is ready for entering the "clear"
command.
And finally, we keep running clear in a loop until the expected output
is just an empty prompt, just in case something completely unexpected
happens, but his should normally not be needed.

This should get rid of race conditions, producing this kind of errors on
overloaded systems:

| --- test/tests/tests.yaml 2026-03-05 10:01:20.000000000 +0000
| +++ test/tests/tests.new.yaml 2026-03-06 22:50:32.911223998 +0000
| @@ -91,10 +91,14 @@
| description: "Check long option with argument (with space)"
| send: "crazy-complete-test test --arg "
| bash_expected: |
| + > clear
| +
| + bash: lear: command not found
| > crazy-complete-test test --arg

or

| --- test/tests/tests.yaml 2026-03-05 10:01:20.000000000 +0000
| +++ test/tests/tests.new.yaml 2026-03-07 04:01:28.256218229 +0000
| @@ -2008,6 +2008,9 @@
| > crazy-complete-test --directory-relative
| bin/ directory/
| zsh_expected: |
| + > c
| + > lear
| + zsh: command not found: lear
| > crazy-complete-test --directory-relative
| bin/ directory/
Nicolas Peugnet <nicolas@club1.fr> yes 2026-03-07
0002-Send-clear-command-in-two-steps-during-tests.patch Send clear command in two steps during tests
By first sending the "clear" text and waiting for it to appear of the
screen before sending "\n", we make sure that the following wait on a
new prompt is not the one before the "clear" text have been printed.

This should get rid of this kind of errors:

| --- test/tests/tests.yaml 2026-03-05 10:01:20.000000000 +0000
| +++ test/tests/tests.new.yaml 2026-03-08 09:57:11.046911186 +0000
| @@ -44,6 +44,7 @@
| bash_expected: |
| > crazy-complete-test test
| fish_expected: |
| + crazy-complete-test t ⏎
| > crazy-complete-test test
| zsh_expected: |
| > crazy-complete-test test
| @@ -808,6 +809,7 @@
| bash_expected: |
| > crazy-complete-test complete --value-list foo,
| fish_expected: |
| + crazy-complete-test complete --value-list foo⏎
| > crazy-complete-test complete --value-list foo
| zsh_expected: |
| > crazy-complete-test complete --value-list foo,
| @@ -1546,6 +1548,7 @@
| one three two
| > crazy-complete-test --colon-list
| fish_expected: |
| + crazy-complete-test --colon-list ⏎
| > crazy-complete-test --colon-list
| one three two
| zsh_expected: |

We have to disable the "Autosuggestions" feature of fish, otherwise the
"clear" command gets automcompleted to something like this:
"> clear; source output/main.fish", which does not match the expected:
"> clear". This only changes the output of two tests.
Nicolas Peugnet <nicolas@club1.fr> yes 2026-03-08

All known versions for source package 'crazy-complete'

Links