[compiler-rt] r313967 - [asan/lsan] Trying to fix buildbots after r313966
Maxim Ostapenko via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 22 01:23:16 PDT 2017
Author: chefmax
Date: Fri Sep 22 01:23:16 2017
New Revision: 313967
URL: http://llvm.org/viewvc/llvm-project?rev=313967&view=rev
Log:
[asan/lsan] Trying to fix buildbots after r313966
Added:
compiler-rt/trunk/test/asan/TestCases/Linux/recoverable-lsan.cc
Removed:
compiler-rt/trunk/test/asan/TestCases/recoverable-lsan.cc
Added: compiler-rt/trunk/test/asan/TestCases/Linux/recoverable-lsan.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/recoverable-lsan.cc?rev=313967&view=auto
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/recoverable-lsan.cc (added)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/recoverable-lsan.cc Fri Sep 22 01:23:16 2017
@@ -0,0 +1,22 @@
+// Ensure that output is the same but exit code depends on halt_on_error value
+// RUN: %clangxx_asan %s -o %t
+// RUN: %env_asan_opts="halt_on_error=0" %run %t 2>&1 | FileCheck %s
+// RUN: %env_asan_opts="halt_on_error=1" not %run %t 2>&1 | FileCheck %s
+// RUN: not %run %t 2>&1 | FileCheck %s
+// UNSUPPORTED: android
+
+#include <stdlib.h>
+
+int f() {
+ volatile int *a = (int *)malloc(20);
+ a[0] = 1;
+ return a[0];
+}
+
+int main() {
+ f();
+ f();
+}
+
+// CHECK: LeakSanitizer: detected memory leaks
+// CHECK: SUMMARY: AddressSanitizer: 20 byte(s) leaked
Removed: compiler-rt/trunk/test/asan/TestCases/recoverable-lsan.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/recoverable-lsan.cc?rev=313966&view=auto
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/recoverable-lsan.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/recoverable-lsan.cc (removed)
@@ -1,21 +0,0 @@
-// Ensure that output is the same but exit code depends on halt_on_error value
-// RUN: %clangxx_asan %s -o %t
-// RUN: %env_asan_opts="halt_on_error=0" %run %t 2>&1 | FileCheck %s
-// RUN: %env_asan_opts="halt_on_error=1" not %run %t 2>&1 | FileCheck %s
-// RUN: not %run %t 2>&1 | FileCheck %s
-
-#include <stdlib.h>
-
-int f() {
- volatile int *a = (int *)malloc(20);
- a[0] = 1;
- return a[0];
-}
-
-int main() {
- f();
- f();
-}
-
-// CHECK: LeakSanitizer: detected memory leaks
-// CHECK: SUMMARY: AddressSanitizer: 20 byte(s) leaked
More information about the llvm-commits
mailing list