Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lldb/test/API/commands/plugin/TestPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ def test_completions(self):
)

# A completion for a full namespace should contain the plugins in that namespace.
self.completions_contain("plugin list abi", ["abi.sysv-x86_64"])
self.completions_contain("plugin list abi.", ["abi.sysv-x86_64"])
self.completions_contain("plugin list abi.s", ["abi.sysv-x86_64"])
self.completions_contain("plugin list abi.sysv-x", ["abi.sysv-x86_64"])
self.completions_contain("plugin list object-file", ["object-file.JSON"])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The object file Json plugin will always be there?

Can we gate the test in such a way to ensure that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not see anything in the CMakeLists.txt file that conditionally enables the JSON object file plugin (unlike the ABI plugins). I also do not see any gates in the json object file tests:

So I think it should always be there.

self.completions_contain("plugin list object-file.", ["object-file.JSON"])
self.completions_contain("plugin list object-file.J", ["object-file.JSON"])
self.completions_contain("plugin list object-file.JS", ["object-file.JSON"])

# Check for a completion that is a both a complete namespace and a prefix of
# another namespace. It should return the completions for the plugins in the completed
Expand Down
Loading