Skip to content

Commit e6e69f3

Browse files
committed
[cfi-verify tests]: Skip two x86-only tests if x86 is not enabled
With this, check-llvm passes on an arm mac if x86 isn't in LLVM_TARGETS_TO_BUILD. This pattern to skip the tests if x86 isn't enabled is used in every other test in this file.
1 parent 238a1ef commit e6e69f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/unittests/tools/llvm-cfi-verify/FileAnalysis.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,8 @@ TEST_F(BasicX86FileAnalysisTest, CFIProtectionComplexExample) {
707707
}
708708

709709
TEST_F(BasicX86FileAnalysisTest, UndefSearchLengthOneTest) {
710+
if (!SuccessfullyInitialised)
711+
GTEST_SKIP();
710712
Analysis.parseSectionContents(
711713
{
712714
0x77, 0x0d, // 0x688118: ja 0x688127 [+12]
@@ -726,6 +728,8 @@ TEST_F(BasicX86FileAnalysisTest, UndefSearchLengthOneTest) {
726728
}
727729

728730
TEST_F(BasicX86FileAnalysisTest, UndefSearchLengthOneTestFarAway) {
731+
if (!SuccessfullyInitialised)
732+
GTEST_SKIP();
729733
Analysis.parseSectionContents(
730734
{
731735
0x74, 0x73, // 0x7759eb: je 0x775a60

0 commit comments

Comments
 (0)