xref: /llvm-project/llvm/test/DebugInfo/symbolize-filter-markup-reset.test (revision 7b31a73ffe87e6302ab433da8128058fce8f54bd)
1RUN: split-file %s %t
2RUN: llvm-symbolizer --filter-markup < %t/log > %t.out 2> %t.err
3RUN: FileCheck %s --input-file=%t.out --match-full-lines \
4RUN:   --implicit-check-not {{.}}
5RUN: FileCheck %s --check-prefix=ERR -input-file=%t.err --match-full-lines
6
7CHECK: [[BEGIN:\[{3}]]ELF module #0x0 "a.o"; BuildID=ab [0x0-0x0](r)[[END:\]{3}]]
8CHECK: {{  }}[[BEGIN]]reset[[END]]
9CHECK: [[BEGIN:\[{3}]]ELF module #0x0 "b.o"; BuildID=cd [0x1-0x1](r)[[END:\]{3}]]
10
11CHECK: [[BEGIN]]reset:ext[[END]]
12ERR: warning: expected 0 field(s); found 1
13
14CHECK: [[BEGIN:\[{3}]]ELF module #0x0 "a.o"; BuildID=ab [0x0-0x0](r)[[END:\]{3}]]
15
16;--- log
17  {{{reset}}}
18{{{module:0:a.o:elf:ab}}}
19{{{mmap:0:1:load:0:r:0}}}
20  {{{reset}}}
21{{{module:0:b.o:elf:cd}}}
22{{{mmap:0x1:1:load:0:r:0}}}
23
24{{{reset:ext}}}
25{{{module:0:a.o:elf:ab}}}
26{{{mmap:0:1:load:0:r:0}}}
27