[PATCH] D36209: [Bash-autocompletion] Add comment to test so that it is easier to fix

Raphael Isemann via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 1 23:30:01 PDT 2017


teemperor accepted this revision.
teemperor added a comment.
This revision is now accepted and ready to land.

E.g. If you add a flag that lands in between the results it breaks. Add `-Wmajor-new-feature` and the test goes red. Same with the flag results or changing the help test for `-std=`.

We could fix that by making the test less aggressive but it's already too forgiving right now (It actually passes when you completely break the autocomplete filtering feature and just return everything).

Maybe we need a smart solution(TM) in the future where we solve this in a more stable way while still actually testing the shipped clang binaries autocomplete feature.



================
Comment at: clang/test/Driver/autocomplete.c:2
+// Test for --autocompletion flag, which is a API used for shell autocompletion.
+// If this test had broke due to adding/modifying flags or changing HelpText,
+// please modify this file according to the change you have made on flags used in this file.
----------------
"test had broke" -> "test broke"


https://reviews.llvm.org/D36209





More information about the cfe-commits mailing list