[lldb] Update regex to be less fragile in TestDataFormatterGenericUnordered
authorDave Lee <davelee.com@gmail.com>
Fri, 11 Nov 2022 19:07:37 +0000 (11:07 -0800)
committerDave Lee <davelee.com@gmail.com>
Fri, 11 Nov 2022 19:42:56 +0000 (11:42 -0800)
commit8f121a3f18f7cc9dac08b7fb43ed7deec6adf583
treeee7a8dda72255bcf2bdf6d74b71f074ed76969bb
parent2d2854c7d5f9c1723e7ecbe7e8b8f9a2a78941a9
[lldb] Update regex to be less fragile in TestDataFormatterGenericUnordered

Follow up to D129386 where libc++ naming conventions were made consistent.

This changes the pattern to not rely on the internal name (`__cc` or `__cc_`),
and instead uses a pattern to check that the child has the form:

```
[0] = {
  first = ...
```

Thanks to @rupprecht for pointing out this issue: https://reviews.llvm.org/D133259#3773120

Reviewed By: rupprecht

Differential Revision: https://reviews.llvm.org/D133395
lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/unordered/TestDataFormatterGenericUnordered.py