[compiler-rt] r337913 - [Asan][Msan] Unit tests Disable some tests for FreeBSD
David Carlier via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 25 05:38:23 PDT 2018
Author: devnexen
Date: Wed Jul 25 05:38:23 2018
New Revision: 337913
URL: http://llvm.org/viewvc/llvm-project?rev=337913&view=rev
Log:
[Asan][Msan] Unit tests Disable some tests for FreeBSD
Reviewers: krytarowski
Reviewed By: krytarowski
Differential Revision: https://reviews.llvm.org/D49784
Modified:
compiler-rt/trunk/test/asan/TestCases/Posix/asan-sigbus.cpp
compiler-rt/trunk/test/asan/TestCases/Posix/fread_fwrite.cc
compiler-rt/trunk/test/asan/TestCases/Posix/stack-use-after-return.cc
compiler-rt/trunk/test/msan/dtls_test.c
Modified: compiler-rt/trunk/test/asan/TestCases/Posix/asan-sigbus.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Posix/asan-sigbus.cpp?rev=337913&r1=337912&r2=337913&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Posix/asan-sigbus.cpp (original)
+++ compiler-rt/trunk/test/asan/TestCases/Posix/asan-sigbus.cpp Wed Jul 25 05:38:23 2018
@@ -5,6 +5,8 @@
// RUN: %env_asan_opts=handle_sigbus=0 not --crash %run %t 2>&1 | FileCheck %s
// UNSUPPORTED: ios
+// Instead of getting a SIGBUS error, we get a SIGSEGV
+// XFAIL: freebsd
#include <assert.h>
#include <fcntl.h>
Modified: compiler-rt/trunk/test/asan/TestCases/Posix/fread_fwrite.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Posix/fread_fwrite.cc?rev=337913&r1=337912&r2=337913&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Posix/fread_fwrite.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Posix/fread_fwrite.cc Wed Jul 25 05:38:23 2018
@@ -1,6 +1,9 @@
// RUN: %clangxx_asan -g %s -o %t
// RUN: not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-FWRITE
// RUN: not %run %t 1 2>&1 | FileCheck %s --check-prefix=CHECK-FREAD
+//
+// On FreeBSD stack overflow error instead
+// XFAIL: freebsd
#include <stdio.h>
#include <stdlib.h>
Modified: compiler-rt/trunk/test/asan/TestCases/Posix/stack-use-after-return.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Posix/stack-use-after-return.cc?rev=337913&r1=337912&r2=337913&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Posix/stack-use-after-return.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Posix/stack-use-after-return.cc Wed Jul 25 05:38:23 2018
@@ -16,6 +16,8 @@
// This test runs out of stack on AArch64.
// UNSUPPORTED: aarch64
+// stack size log lower than expected
+// XFAIL: freebsd
// FIXME: Fix this test for dynamic runtime on arm linux.
// UNSUPPORTED: (arm-linux || armhf-linux) && asan-dynamic-runtime
@@ -95,7 +97,7 @@ int main(int argc, char **argv) {
if (stacksize_check != desired_stack_size) {
fprintf(stderr, "Unable to set stack size to %d, the stack size is %d.\n",
- desired_stack_size, stacksize_check);
+ (int)desired_stack_size, (int)stacksize_check);
abort();
}
}
Modified: compiler-rt/trunk/test/msan/dtls_test.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/msan/dtls_test.c?rev=337913&r1=337912&r2=337913&view=diff
==============================================================================
--- compiler-rt/trunk/test/msan/dtls_test.c (original)
+++ compiler-rt/trunk/test/msan/dtls_test.c Wed Jul 25 05:38:23 2018
@@ -6,7 +6,7 @@
see https://sourceware.org/bugzilla/show_bug.cgi?id=16291
and https://github.com/google/sanitizers/issues/547
- XFAIL: freebsd
+ XFAIL: FreeBSD
UNSUPPORTED: powerpc
*/
More information about the llvm-commits
mailing list