[Asan][Msan] Unit tests Disable some tests for FreeBSD
authorDavid Carlier <devnexen@gmail.com>
Wed, 25 Jul 2018 12:38:23 +0000 (12:38 +0000)
committerDavid Carlier <devnexen@gmail.com>
Wed, 25 Jul 2018 12:38:23 +0000 (12:38 +0000)
Reviewers: krytarowski

Reviewed By: krytarowski

Differential Revision: https://reviews.llvm.org/D49784

llvm-svn: 337913

compiler-rt/test/asan/TestCases/Posix/asan-sigbus.cpp
compiler-rt/test/asan/TestCases/Posix/fread_fwrite.cc
compiler-rt/test/asan/TestCases/Posix/stack-use-after-return.cc
compiler-rt/test/msan/dtls_test.c

index 1418dc4..baf1e42 100644 (file)
@@ -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>
index c062926..6402488 100644 (file)
@@ -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>
index 2b9f1d4..237c880 100644 (file)
@@ -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(); 
     }
   }
index bcb1c18..b9021e0 100644 (file)
@@ -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
 */