[test] Allow libc++ namespaces besides `__1`
authorJordan Rupprecht <rupprecht@google.com>
Tue, 29 Nov 2022 12:34:40 +0000 (04:34 -0800)
committerJordan Rupprecht <rupprecht@google.com>
Tue, 29 Nov 2022 12:34:40 +0000 (04:34 -0800)
commit7d26f9e1329f981ed43eb31f66891702de2f6470
tree2d9fb5381d9c479a947587cea4f8a25b463f0d19
parent0676acb6fd8d5e22fde16e6ec977ceac08427ab0
[test] Allow libc++ namespaces besides `__1`

The libc++ data formatter for `std::shared_ptr` allows any namespace, but the test asserts that it must be the default `__1` namespace. Relax the regex to allow anything that looks like `__.*` (although we use `__[^:]*` so we don't match arbitrarily long text).

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D129898
lldb/test/API/commands/expression/import-std-module/forward_decl_from_module/TestForwardDeclFromStdModule.py
lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/shared_ptr/TestDataFormatterLibcxxSharedPtr.py