[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / llvm / test / DebugInfo / symbolize-filter-markup-mmap.test
blob37e159e7797f699ad9773a3f1ed7a3653272cf9d
1 RUN: split-file %s %t
2 RUN: llvm-symbolizer --filter-markup < %t/log > %t.out 2> %t.err
3 RUN: FileCheck %s --input-file=%t.out --match-full-lines \
4 RUN:   --implicit-check-not {{.}}
5 RUN: FileCheck %s --check-prefix=ERR -input-file=%t.err --match-full-lines
7 CHECK: [[BEGIN:\[{3}]]ELF module #0x0 "a.o"; BuildID=abb50d82b6bdc861 [0x0-0x0](rwx),[0x1-0x1](r),[0x2-0x2](w),[0x3-0x3](x),[0x4-0x4](rwx),[0xa-0xb](r)[[END:\]{3}]]
9 ERR: error: expected at least 3 field(s); found 0
10 ERR: error: unknown mmap type
11 ERR: error: expected 6 field(s); found 3
12 ERR: error: expected address; found '1'
13 ERR: error: expected size; found '-1'
14 ERR: error: expected mode; found ''
15 ERR: error: expected mode; found 'g'
16 ERR: error: expected mode; found 'wr'
17 ERR: error: overlapping mmap: #0x0 [0xa-0xb]
18 ERR: error: overlapping mmap: #0x0 [0xa-0xb]
19 ERR: error: overlapping mmap: #0x0 [0xa-0xb]
21 ;--- log
22 {{{module:0:a.o:elf:abb50d82b6bdc861}}}
23 {{{mmap:0x1:1:load:0:r:0}}}
24 {{{mmap:0x2:1:load:0:w:0}}}
25 {{{mmap:0x3:1:load:0:x:0}}}
26 {{{mmap:0x4:1:load:0:rwx:0}}}
27 {{{mmap:0x0:1:load:0:RWX:0}}}
28 {{{mmap:0xa:2:load:0:r:0}}}
30 {{{mmap}}}
31 {{{mmap:0:1:unknown}}}
32 {{{mmap:0:10000000:load}}}
33 {{{mmap:1:10000000:load:0:r:0}}}
34 {{{mmap:0:-1:load:0:r:0}}}
35 {{{mmap:0:10000000:load:0::0}}}
36 {{{mmap:0:10000000:load:0:g:0}}}
37 {{{mmap:0:10000000:load:0:wr:0}}}
38 {{{mmap:0xa:1:load:0:r:0}}}
39 {{{mmap:0x9:2:load:0:r:0}}}
40 {{{mmap:0x9:5:load:0:r:0}}}