[compiler-rt] 0eb5b6e - [test/compiler-rt] Disable ubsan/TestCases/Misc/nullability.c on Android
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 2 12:01:22 PST 2020
Author: Vedant Kumar
Date: 2020-03-02T12:01:09-08:00
New Revision: 0eb5b6e88c78662c14014b61e997d2d2f187c980
URL: https://github.com/llvm/llvm-project/commit/0eb5b6e88c78662c14014b61e997d2d2f187c980
DIFF: https://github.com/llvm/llvm-project/commit/0eb5b6e88c78662c14014b61e997d2d2f187c980.diff
LOG: [test/compiler-rt] Disable ubsan/TestCases/Misc/nullability.c on Android
It looks like the suppression file isn't being copied over to the
device.
Added:
Modified:
compiler-rt/test/ubsan/TestCases/Misc/nullability.c
Removed:
################################################################################
diff --git a/compiler-rt/test/ubsan/TestCases/Misc/nullability.c b/compiler-rt/test/ubsan/TestCases/Misc/nullability.c
index 849d7ee203c6..50295fe503f9 100644
--- a/compiler-rt/test/ubsan/TestCases/Misc/nullability.c
+++ b/compiler-rt/test/ubsan/TestCases/Misc/nullability.c
@@ -1,3 +1,4 @@
+// UNSUPPORTED: android
// RUN: %clang -w -fsanitize=nullability-arg,nullability-assign,nullability-return %s -O3 -o %t
// RUN: %run %t foo 2>&1 | count 0
// RUN: %run %t 2>&1 | FileCheck %s
@@ -5,11 +6,7 @@
// RUN: echo "nullability-arg:nullability.c" > %t.supp
// RUN: echo "nullability-return:nullability.c" >> %t.supp
// RUN: echo "nullability-assign:nullability.c" >> %t.supp
-// RUN: UBSAN_OPTIONS=suppressions=%t.supp %run %t
-//
-// XXX: This test is failing on the sanitizer-x86_64-linux-android, but not
-// in a way that provides debuggable output. Relax the check so we can debug.
-// 2>&1 | FileCheck -allow-empty -check-prefix=SUPPRESS %s
+// RUN: UBSAN_OPTIONS=suppressions=%t.supp %run %t 2>&1 | FileCheck -allow-empty -check-prefix=SUPPRESS %s
// SUPPRESS-NOT: runtime error
// CHECK: nullability.c:[[@LINE+2]]:41: runtime error: null pointer returned from function declared to never return null
More information about the llvm-commits
mailing list