From 54b5b1d8fc99376fccbbcb471825012dfa1e4017 Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Tue, 14 Jan 2014 18:06:52 +0000 Subject: Fixed test cases that fail if using an in-source build --- test/regression/2007-08-01-bool-zext-in-call.ll | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'test/regression/2007-08-01-bool-zext-in-call.ll') diff --git a/test/regression/2007-08-01-bool-zext-in-call.ll b/test/regression/2007-08-01-bool-zext-in-call.ll index d10a41ef..fc77785d 100644 --- a/test/regression/2007-08-01-bool-zext-in-call.ll +++ b/test/regression/2007-08-01-bool-zext-in-call.ll @@ -1,5 +1,12 @@ -; RUN: llvm-as -f %s -o - | %klee 2> %t1.log -; RUN: not test -f klee-last/test0001.abort.err +; RUN: rm -rf %T/xxx +; +; The output directory must be explicitly set so that it ends up in the Output/ +; directory which is not scanned for .ll files by llvm-lit, otherwise running +; test suite a second time will cause problems because assembly.ll generated by +; executing this test case the first time will be detected as a test case. +; +; RUN: llvm-as -f %s -o - | %klee --output-dir=%T/xxx +; RUN: not test -f %T/xxx/klee-last/test0001.abort.err declare void @klee_abort() -- cgit 1.4.1