[test][lldb-vscode] Relax assertion to allow multiple compile units returned.
authorJordan Rupprecht <rupprecht@google.com>
Thu, 22 Dec 2022 13:19:29 +0000 (05:19 -0800)
committerJordan Rupprecht <rupprecht@google.com>
Thu, 22 Dec 2022 13:19:29 +0000 (05:19 -0800)
commit3afe296c81b93473c1e5008514d6225a2200ad19
treed802ef6ddbdd6820f05476c321190084fecbb2d3
parent20d72c4917ce55cc9270a9ed48661a87edf311a6
[test][lldb-vscode] Relax assertion to allow multiple compile units returned.

I don't think the intent of this test is to make sure we only have one compile unit; it's to make sure request_compileUnits returns something sensible. Relax the test case to just make sure that the main source file is one of the compile units returned, even if there are others.

Fixes llvm.org/pr49418.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D138344
lldb/test/API/tools/lldb-vscode/module/TestVSCode_module.py