Skip to content

Commit

Permalink
[tests] Make ...completion less flakey
Browse files Browse the repository at this point in the history
  • Loading branch information
thoni56 committed Nov 26, 2024
1 parent 0aa9f05 commit b314768
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_cexercise_completions/cexercise/completions.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <stdio.h>
#include <assert.h>
#define xxxx(a) a*a

/*
Check completion on following demonstration lines! Each
Expand Down Expand Up @@ -62,7 +62,7 @@ void completions() {
;

// macro names completions
ass
xxx
;


Expand Down
3 changes: 1 addition & 2 deletions tests/test_cexercise_completions/expected
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ end-of-options

<sync>
<all-completions nofocus=0 len=<n>>asprintf :int asprintf(__ERROR__, __ERROR__, ...)
assert :#define assert(expr)
auto :keyword
asm :keyword</all-completions>
-xrefrc CURDIR/.c-xrefrc -p CURDIR -olcxcomplet -maxcompls=500 -olinelen=236 -olmark=0 -olcursor=1689 CURDIR/cexercise/completions.c
Expand Down Expand Up @@ -72,7 +71,7 @@ end-of-options
<goto>
<position-lc line=65 col=4 len=<n>>CURDIR/cexercise/completions.c</position-lc>
</goto>
<single-completion len=<n>>assert</single-completion>
<single-completion len=<n>>xxxx</single-completion>
-xrefrc CURDIR/.c-xrefrc -p CURDIR -olcxcomplet -maxcompls=500 -olinelen=236 -olmark=0 -olcursor=1936 CURDIR/cexercise/completions.c
end-of-options

Expand Down

0 comments on commit b314768

Please sign in to comment.