From 5389bec800997d58b0660c87615fd4d68c7cefd2 Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Fri, 3 Feb 2023 14:11:18 +0000 Subject: Disable memcpy_chk_err.c on FreeBSD, where a call to __memcpy_chk is not generated --- test/Runtime/FreeStanding/memcpy_chk_err.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/Runtime/FreeStanding/memcpy_chk_err.c b/test/Runtime/FreeStanding/memcpy_chk_err.c index d8e8bc51..490d3f1d 100644 --- a/test/Runtime/FreeStanding/memcpy_chk_err.c +++ b/test/Runtime/FreeStanding/memcpy_chk_err.c @@ -1,9 +1,10 @@ // This test checks that __memcpy_chk find the kind of errors it was // designed to find -// It requires clang >= 10, otherwise a direct call to memcpy is -// emitted instead of to __memcpy_chk +// It requires clang >= 10 and not FreeBSD, otherwise a direct call to +// memcpy is emitted instead of to __memcpy_chk // REQUIRES: geq-llvm-10.0 +// REQUIRES: not-freebsd // RUN: %clang %s -emit-llvm -O2 -g -c -D_FORTIFY_SOURCE=1 -o %t2.bc // RUN: rm -rf %t.klee-out @@ -24,7 +25,7 @@ int main() { char d[5]; - char* s = "1234567890"; + char *s = "1234567890"; memcpy(d, s, 10); } -- cgit 1.4.1