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/FunctionAliasExit.c | 4 +++- test/Feature/FunctionPointer.c | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/Feature/FunctionAliasExit.c b/test/Feature/FunctionAliasExit.c index b30838d0..40b5d617 100644 --- a/test/Feature/FunctionAliasExit.c +++ b/test/Feature/FunctionAliasExit.c @@ -1,6 +1,8 @@ // RUN: %clang %s -emit-llvm %O0opt -c -o %t.bc // RUN: rm -rf %t.klee-out -// RUN: %klee --output-dir=%t.klee-out -function-alias=exit:end %t.bc 2>&1 | FileCheck %s +// RUN: %klee --search=bfs --output-dir=%t.klee-out -function-alias=exit:end %t.bc 2>&1 | FileCheck %s + +#include "klee/klee.h" #include #include 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