From 3515cb00c750ec5f081d4d0e3a1c386080ccda7e Mon Sep 17 00:00:00 2001 From: Frank Busse Date: Fri, 25 Mar 2022 14:05:56 +0000 Subject: tests: make function pointer tests more robust --- test/Feature/FunctionPointer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/Feature/FunctionPointer.c') diff --git a/test/Feature/FunctionPointer.c b/test/Feature/FunctionPointer.c index 649946dc..b2e31ee0 100644 --- a/test/Feature/FunctionPointer.c +++ b/test/Feature/FunctionPointer.c @@ -1,6 +1,6 @@ // RUN: %clang %s -emit-llvm -g -c -o %t.bc // RUN: rm -rf %t.klee-out -// RUN: %klee --output-dir=%t.klee-out --write-no-tests --exit-on-error %t.bc 2>&1 | FileCheck %s +// RUN: %klee --search=bfs --output-dir=%t.klee-out --write-no-tests --exit-on-error %t.bc 2>&1 | FileCheck %s #include "klee/klee.h" @@ -42,8 +42,8 @@ int main(int argc, char **argv) { void (*fp2)(const char *); klee_make_symbolic(&fp2, sizeof fp2, "fp2"); if(fp2 == baz || fp2 == foo) { - // CHECK-DAG: baz: calling via symbolic! - // CHECK-DAG: foo: calling via symbolic! + // CHECK: baz: calling via symbolic! + // CHECK: foo: calling via symbolic! fp2("calling via symbolic!"); } -- cgit 1.4.1