Skip to content

Commit 026b184

Browse files
committed
Add REQUIRES: x86-registered-target to tests.
1 parent 3c94a44 commit 026b184

7 files changed

+14
-0
lines changed

llvm/test/tools/llvm-readobj/ELF/call-graph-info-callgraph-section.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Tests --call-graph-info prints information from call graph section.
22

3+
# REQUIRES: x86-registered-target
4+
35
# RUN: llvm-mc %s -filetype=obj -triple=x86_64-pc-linux -o %t
46
# RUN: llvm-readelf --call-graph-info %t 2>&1 | FileCheck %s -DFILE=%t --match-full-lines
57
# RUN: llvm-readelf --elf-output-style=LLVM --call-graph-info %t 2>&1 | FileCheck %s --match-full-lines -DFILE=%t --check-prefix=LLVM

llvm/test/tools/llvm-readobj/ELF/call-graph-info-err-invalid-format-version.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
## Tests that --call-graph-info fails if .callgraph section has unknown format
22
## version number.
33

4+
# REQUIRES: x86-registered-target
5+
46
# RUN: llvm-mc %s -filetype=obj -triple=x86_64-pc-linux -o %t
57
# RUN: not llvm-readelf --call-graph-info %t 2>&1 | FileCheck %s --match-full-lines -DFILE=%t --check-prefix=ERR
68
# RUN: not llvm-readelf --elf-output-style=LLVM --call-graph-info %t 2>&1 | FileCheck %s --match-full-lines -DFILE=%t --check-prefix=ERR

llvm/test/tools/llvm-readobj/ELF/call-graph-info-err-invalid-func-kind.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
## Tests that --call-graph-info fails if .callgraph section has invalid
22
## function kind value.
33

4+
# REQUIRES: x86-registered-target
5+
46
# RUN: llvm-mc %s -filetype=obj -triple=x86_64-pc-linux -o %t
57
# RUN: not llvm-readelf --call-graph-info %t 2>&1 | FileCheck %s --match-full-lines -DFILE=%t --check-prefix=ERR
68
# RUN: not llvm-readelf --elf-output-style=LLVM --call-graph-info %t 2>&1 | FileCheck %s --match-full-lines -DFILE=%t --check-prefix=ERR

llvm/test/tools/llvm-readobj/ELF/call-graph-info-err-malformed-callgraph-section.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Tests that --call-graph-info fails if .callgraph section has invalid size.
22

3+
# REQUIRES: x86-registered-target
4+
35
# RUN: llvm-mc %s -filetype=obj -triple=x86_64-pc-linux -o %t
46
# RUN: not llvm-readelf --call-graph-info %t 2>&1 | FileCheck %s --match-full-lines -DFILE=%t --check-prefix=ERR
57
# RUN: not llvm-readelf --elf-output-style=LLVM --call-graph-info %t 2>&1 | FileCheck %s --match-full-lines -DFILE=%t --check-prefix=ERR

llvm/test/tools/llvm-readobj/ELF/call-graph-info-err-malformed-callgraph-section2.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
## Tests that --call-graph-info fails if .callgraph section does not have
22
## an expected value, e.g., not as much call sites as the given count.
33

4+
# REQUIRES: x86-registered-target
5+
46
# RUN: llvm-mc %s -filetype=obj -triple=x86_64-pc-linux -o %t
57
# RUN: not llvm-readelf --call-graph-info %t 2>&1 | FileCheck %s --match-full-lines -DFILE=%t --check-prefix=ERR
68
# RUN: not llvm-readelf --elf-output-style=LLVM --call-graph-info %t 2>&1 | FileCheck %s --match-full-lines -DFILE=%t --check-prefix=ERR

llvm/test/tools/llvm-readobj/ELF/call-graph-info-err-malformed-callgraph-section3.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
## Tests that --call-graph-info fails if .callgraph section does not have
22
## an expected value, e.g., not as much call sites as the given count.
33

4+
# REQUIRES: x86-registered-target
5+
46
# RUN: llvm-mc %s -filetype=obj -triple=x86_64-pc-linux -o %t
57
# RUN: not llvm-readelf --call-graph-info %t 2>&1 | FileCheck %s --match-full-lines -DFILE=%t --check-prefix=ERR
68
# RUN: not llvm-readelf --elf-output-style=LLVM --call-graph-info %t 2>&1 | FileCheck %s --match-full-lines -DFILE=%t --check-prefix=ERR

llvm/test/tools/llvm-readobj/ELF/call-graph-info-err-no-callgraph-section.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Tests that --call-graph-info warns if there is no .callgraph section.
22

3+
# REQUIRES: x86-registered-target
4+
35
# RUN: llvm-mc %s -filetype=obj -triple=x86_64-pc-linux -o %t
46
# RUN: not llvm-readelf --call-graph-info %t 2>&1 | FileCheck %s --match-full-lines -DFILE=%t
57
# RUN: not llvm-readelf --elf-output-style=LLVM --call-graph-info %t 2>&1 | FileCheck %s --match-full-lines -DFILE=%t

0 commit comments

Comments
 (0)