about summary refs log tree commit diff homepage
path: root/test
diff options
context:
space:
mode:
authorMartin Nowack <m.nowack@imperial.ac.uk>2023-03-21 11:13:22 +0000
committerCristian Cadar <c.cadar@imperial.ac.uk>2023-03-22 17:02:03 +0000
commit6b21755f0744cdf7b71bf14432324e1a15c119ea (patch)
tree1ad9dddb557b7d8c606d9fcd29934fec7b3674d6 /test
parent5c8610ec5e6fd54746b2934bcb0a4d63ef20b0bf (diff)
downloadklee-6b21755f0744cdf7b71bf14432324e1a15c119ea.tar.gz
Handle fail of KLEE gracefully
Under 64bit architecture, a ptr-error might be found.
Ignore this for now.
Diffstat (limited to 'test')
-rw-r--r--test/Programs/pcregrep.c2
-rw-r--r--test/lit.cfg1
2 files changed, 2 insertions, 1 deletions
diff --git a/test/Programs/pcregrep.c b/test/Programs/pcregrep.c
index 7bcef671..8bd7a00f 100644
--- a/test/Programs/pcregrep.c
+++ b/test/Programs/pcregrep.c
@@ -2,7 +2,7 @@
 // RUN: %clang -m32 %s -emit-llvm %O0opt -c -o %t1.bc
 // RUN: rm -rf %t.klee-out
 // RUN: %klee --output-dir=%t.klee-out --libc=klee --exit-on-error %t1.bc 2 2
-// XFAIL: x86_64
+// XFAIL: not-target-x86
 
 /* Provide Declarations */
 #include <stdarg.h>
diff --git a/test/lit.cfg b/test/lit.cfg
index ca7fe20f..8d2654d5 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -225,6 +225,7 @@ else:
   config.available_features.add('not-wsl-2')
 
 # m32 support
+config.available_features.add('{}target-x86'.format('' if config.target_triple.find("i386") != -1 else 'not-'))
 config.available_features.add('{}32bit-support'.format('' if config.have_32bit_support else 'not-'))