[PATCH] D49784: [Asan][Msan] Unit tests Disable some tests for FreeBSD

David CARLIER via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 25 05:38:41 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT337913: [Asan][Msan] Unit tests Disable some tests for FreeBSD (authored by devnexen, committed by ).

Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D49784

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


Index: test/msan/dtls_test.c
===================================================================
--- test/msan/dtls_test.c
+++ test/msan/dtls_test.c
@@ -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
 */
 
Index: test/asan/TestCases/Posix/asan-sigbus.cpp
===================================================================
--- test/asan/TestCases/Posix/asan-sigbus.cpp
+++ test/asan/TestCases/Posix/asan-sigbus.cpp
@@ -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: test/asan/TestCases/Posix/stack-use-after-return.cc
===================================================================
--- test/asan/TestCases/Posix/stack-use-after-return.cc
+++ test/asan/TestCases/Posix/stack-use-after-return.cc
@@ -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 @@
 
     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: test/asan/TestCases/Posix/fread_fwrite.cc
===================================================================
--- test/asan/TestCases/Posix/fread_fwrite.cc
+++ test/asan/TestCases/Posix/fread_fwrite.cc
@@ -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>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49784.157240.patch
Type: text/x-patch
Size: 2121 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180725/000af728/attachment.bin>


More information about the llvm-commits mailing list