[Test][lldb] Fix YAML mapping keys duplication. NFC.
authorAnton Sidorenko <anton.sidorenko@syntacore.com>
Fri, 10 Feb 2023 12:37:13 +0000 (15:37 +0300)
committerAnton Sidorenko <anton.sidorenko@syntacore.com>
Mon, 13 Feb 2023 13:41:15 +0000 (16:41 +0300)
YAML specification does not allow keys duplication an a mapping. However, YAML
parser in LLVM does not have any check on that and uses only the last key entry.
In this change duplicated keys are merged to satisfy the spec.

Differential Revision: https://reviews.llvm.org/D143727

lldb/test/API/functionalities/postmortem/minidump-new/libbreakpad-decoy.yaml
lldb/test/API/functionalities/postmortem/minidump-new/libbreakpad-overflow.yaml
lldb/test/API/functionalities/postmortem/minidump-new/libbreakpad.yaml

index 028a12f..a60f803 100644 (file)
@@ -9,7 +9,6 @@ FileHeader:
   Machine:         EM_ARM
   Flags:           [ EF_ARM_SOFT_FLOAT, EF_ARM_EABI_VER5 ]
 Sections:
-Sections:
   - Name:            .text
     Type:            SHT_PROGBITS
     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
index 807a468..c28c6d9 100644 (file)
@@ -6,7 +6,6 @@ FileHeader:
   Machine:         EM_ARM
   Flags:           [ EF_ARM_SOFT_FLOAT, EF_ARM_EABI_VER5 ]
 Sections:
-Sections:
   - Name:            .text
     Type:            SHT_PROGBITS
     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
index 53e96f6..816848f 100644 (file)
@@ -6,7 +6,6 @@ FileHeader:
   Machine:         EM_ARM
   Flags:           [ EF_ARM_SOFT_FLOAT, EF_ARM_EABI_VER5 ]
 Sections:
-Sections:
   - Name:            .text
     Type:            SHT_PROGBITS
     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]