aboutsummaryrefslogtreecommitdiff
path: root/lldb/unittests/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2020-05-08 14:43:16 +0200
committerRaphael Isemann <teemperor@gmail.com>2020-05-08 15:05:19 +0200
commit7283ec017049862423934187e35d69123774bbdc (patch)
tree75968b1d864ff63906a9c05c08c6c467db774b5d /lldb/unittests/ScriptInterpreter/Python
parentf936457f80bbfa31b92f0361158e81dcc0281786 (diff)
downloadllvm-7283ec017049862423934187e35d69123774bbdc.zip
llvm-7283ec017049862423934187e35d69123774bbdc.tar.gz
llvm-7283ec017049862423934187e35d69123774bbdc.tar.bz2
[lldb] Fix RecordDecl match string in module-ownership.mm to get the test running again
The relevant output FileCheck is scanning in this test is as follows: CXXRecordDecl 0x7f96cf8239c8 <<invalid sloc>> <invalid sloc> imported in A.B <undeserialized declarations> struct definition <<DefinitionData boilerplate>> `-FieldDecl 0x7f96cf823b90 <<invalid sloc>> <invalid sloc> imported in A.B anon_field_b 'int' (anonymous struct) CXXRecordDecl 0x7f96cf823be8 <<invalid sloc>> <invalid sloc> imported in A.B struct Before 710fa2c4ee346e1ec2db66ac5fdf6909e79d9a8c this test was passing by accident as it had a -DAG suffix in the checks changed by this patch, causing FileCheck to first match the last line of the output above (instead of the first one), and then finding the FieldDecl above. When I removed the -DAG suffix, FileCheck actually enforced the ordering and started failing as the FieldDecl comes before the CXXRecordDecl match we get. This patch fixes the CXXRecordDecl check to find the first line of the output above which caused FileCheck to also find the FieldDecl that follows. Also gives the FieldDecl a more unique name to make name collisions less likely.
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions