Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit 90335d0

Browse files
committed
CFI: Run the tests only on supported architectures/OSs.
Specifically, only run the cfi-icall tests on x86/x86_64, and add an XFAIL for darwin. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@247325 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 35c115c commit 90335d0

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed
File renamed without changes.

test/cfi/external-call.c renamed to test/cfi/icall/external-call.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
// RUN: %t1 c 1 2>&1 | FileCheck --check-prefix=CFI %s
33
// RUN: %t1 s 2 2>&1 | FileCheck --check-prefix=CFI %s
44

5+
// This test uses jump tables containing PC-relative references to external
6+
// symbols, which the Mach-O object writer does not currently support.
7+
// XFAIL: darwin
8+
59
#include <stdlib.h>
610
#include <stdio.h>
711
#include <math.h>

test/cfi/icall/lit.local.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# The cfi-icall checker is only supported on x86 and x86_64 for now.
2+
if config.root.host_arch not in ['x86', 'x86_64']:
3+
config.unsupported = True

0 commit comments

Comments
 (0)