xref: /llvm-project/llvm/test/DebugInfo/symbolize-filter-markup-parse-fields.test (revision 9812948d22328e6f810c7654b93b063ce97ecfec)
117e4c217SDaniel ThornburghRUN: split-file %s %t
217e4c217SDaniel ThornburghRUN: llvm-symbolizer --filter-markup < %t/log 2> %t.err
317e4c217SDaniel ThornburghRUN: FileCheck %s -input-file=%t.err --match-full-lines
417e4c217SDaniel Thornburgh
5*9812948dSDaniel ThornburghCHECK-NOT: error: expected address; found '0x4f'
6*9812948dSDaniel ThornburghCHECK-NOT: error: expected address; found '00'
717e4c217SDaniel ThornburghCHECK:     error: expected address; found ''
817e4c217SDaniel ThornburghCHECK:     error: expected address; found '42'
917e4c217SDaniel ThornburghCHECK:     error: expected address; found '0xgg'
1017e4c217SDaniel Thornburgh
11*9812948dSDaniel ThornburghCHECK-NOT: error: expected module ID; found '0'
1217e4c217SDaniel ThornburghCHECK:     error: expected module ID; found ''
1317e4c217SDaniel ThornburghCHECK:     error: expected module ID; found '-1'
14*9812948dSDaniel ThornburghCHECK-NOT: error: expected module ID; found '077'
1517e4c217SDaniel ThornburghCHECK:     error: expected module ID; found '079'
16*9812948dSDaniel ThornburghCHECK-NOT: error: expected module ID; found '0xff'
1717e4c217SDaniel ThornburghCHECK:     error: expected module ID; found '0xfg'
1817e4c217SDaniel ThornburghCHECK:     error: expected module ID; found '0x'
1917e4c217SDaniel Thornburgh
2017e4c217SDaniel ThornburghCHECK:     error: expected build ID; found ''
21*9812948dSDaniel ThornburghCHECK-NOT: error: expected build ID; found '0'
22*9812948dSDaniel ThornburghCHECK-NOT: error: expected build ID; found '0xff'
2317e4c217SDaniel ThornburghCHECK:     error: expected build ID; found 'fg'
2417e4c217SDaniel Thornburgh
2517e4c217SDaniel Thornburgh;--- log
2617e4c217SDaniel Thornburgh{{{mmap:0x4f:1:unknown}}}
2717e4c217SDaniel Thornburgh{{{mmap:00:1:unknown}}}
2817e4c217SDaniel Thornburgh{{{mmap::1:unknown}}}
2917e4c217SDaniel Thornburgh{{{mmap:42:1:unknown}}}
3017e4c217SDaniel Thornburgh{{{mmap:0xgg:1:unknown}}}
3117e4c217SDaniel Thornburgh
3217e4c217SDaniel Thornburgh{{{module:0::elf:00}}}
3317e4c217SDaniel Thornburgh{{{module:::elf:00}}}
3417e4c217SDaniel Thornburgh{{{module:-1::elf:00}}}
3517e4c217SDaniel Thornburgh{{{module:077::elf:00}}}
3617e4c217SDaniel Thornburgh{{{module:079::elf:00}}}
3717e4c217SDaniel Thornburgh{{{module:0xff::elf:00}}}
3817e4c217SDaniel Thornburgh{{{module:0xfg::elf:00}}}
3917e4c217SDaniel Thornburgh{{{module:0x::elf:00}}}
4017e4c217SDaniel Thornburgh
4117e4c217SDaniel Thornburgh{{{module:1::elf:}}}
4217e4c217SDaniel Thornburgh{{{module:2::elf:0}}}
4317e4c217SDaniel Thornburgh{{{module:3::elf:ff}}}
4417e4c217SDaniel Thornburgh{{{module:4::elf:fg}}}
45