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.

llvm-svn: 247325
This commit is contained in:
Peter Collingbourne 2015-09-10 19:18:08 +00:00
parent 24ec4924c0
commit 6f94087329
3 changed files with 7 additions and 0 deletions

View File

@ -2,6 +2,10 @@
// RUN: %t1 c 1 2>&1 | FileCheck --check-prefix=CFI %s
// RUN: %t1 s 2 2>&1 | FileCheck --check-prefix=CFI %s
// This test uses jump tables containing PC-relative references to external
// symbols, which the Mach-O object writer does not currently support.
// XFAIL: darwin
#include <stdlib.h>
#include <stdio.h>
#include <math.h>

View File

@ -0,0 +1,3 @@
# The cfi-icall checker is only supported on x86 and x86_64 for now.
if config.root.host_arch not in ['x86', 'x86_64']:
config.unsupported = True