[compiler-rt] r197488 - [LSan] Add a real test for suppressions file instead of duplicated test case.

Alexey Samsonov samsonov at google.com
Tue Dec 17 03:02:53 PST 2013


Author: samsonov
Date: Tue Dec 17 05:02:52 2013
New Revision: 197488

URL: http://llvm.org/viewvc/llvm-project?rev=197488&view=rev
Log:
[LSan] Add a real test for suppressions file instead of duplicated test case.

Modified:
    compiler-rt/trunk/lib/lsan/lit_tests/TestCases/suppressions_default.cc
    compiler-rt/trunk/lib/lsan/lit_tests/TestCases/suppressions_file.cc

Modified: compiler-rt/trunk/lib/lsan/lit_tests/TestCases/suppressions_default.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/lsan/lit_tests/TestCases/suppressions_default.cc?rev=197488&r1=197487&r2=197488&view=diff
==============================================================================
--- compiler-rt/trunk/lib/lsan/lit_tests/TestCases/suppressions_default.cc (original)
+++ compiler-rt/trunk/lib/lsan/lit_tests/TestCases/suppressions_default.cc Tue Dec 17 05:02:52 2013
@@ -1,4 +1,3 @@
-// Test for ScopedDisabler.
 // RUN: LSAN_BASE="use_registers=0:use_stacks=0"
 // RUN: %clangxx_lsan %s -o %t
 // RUN: LSAN_OPTIONS=$LSAN_BASE not %t 2>&1 | FileCheck %s

Modified: compiler-rt/trunk/lib/lsan/lit_tests/TestCases/suppressions_file.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/lsan/lit_tests/TestCases/suppressions_file.cc?rev=197488&r1=197487&r2=197488&view=diff
==============================================================================
--- compiler-rt/trunk/lib/lsan/lit_tests/TestCases/suppressions_file.cc (original)
+++ compiler-rt/trunk/lib/lsan/lit_tests/TestCases/suppressions_file.cc Tue Dec 17 05:02:52 2013
@@ -1,18 +1,10 @@
-// Test for ScopedDisabler.
-// RUN: LSAN_BASE="use_registers=0:use_stacks=0"
+// RUN: LSAN_BASE="use_registers=0:use_stacks=0:suppressions=%s.supp"
 // RUN: %clangxx_lsan %s -o %t
 // RUN: LSAN_OPTIONS=$LSAN_BASE not %t 2>&1 | FileCheck %s
 
 #include <stdio.h>
 #include <stdlib.h>
 
-#include "sanitizer/lsan_interface.h"
-
-extern "C"
-const char *__lsan_default_suppressions() {
-  return "leak:*LSanTestLeakingFunc*";
-}
-
 void LSanTestLeakingFunc() {
   void *p = malloc(666);
   fprintf(stderr, "Test alloc: %p.\n", p);





More information about the llvm-commits mailing list