From ef70ae9036c26a925e05c6169dba324d72e92995 Mon Sep 17 00:00:00 2001 From: Mike Aizatsky Date: Fri, 5 Aug 2016 20:48:48 +0000 Subject: [PATCH] [sanitizers] remove failing test. The test often fails on Windows because there are more branches in the code that is generated. llvm-svn: 277862 --- compiler-rt/test/asan/TestCases/coverage-pc-buffer.cc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/compiler-rt/test/asan/TestCases/coverage-pc-buffer.cc b/compiler-rt/test/asan/TestCases/coverage-pc-buffer.cc index 0e0434a..ce4013f 100644 --- a/compiler-rt/test/asan/TestCases/coverage-pc-buffer.cc +++ b/compiler-rt/test/asan/TestCases/coverage-pc-buffer.cc @@ -11,7 +11,6 @@ #include static volatile int sink; -__attribute__((noinline)) void bar() { sink = 2; } __attribute__((noinline)) void foo() { sink = 1; } void assertNotZeroPcs(uintptr_t *buf, uintptr_t size) { @@ -33,9 +32,7 @@ int main() { { uintptr_t sz = __sanitizer_get_coverage_pc_buffer_pos(); - // call functions for the first time. foo(); - bar(); uintptr_t sz1 = __sanitizer_get_coverage_pc_buffer_pos(); assertNotZeroPcs(buf.get(), sz1); assert(sz1 > sz); @@ -43,15 +40,6 @@ int main() { { uintptr_t sz = __sanitizer_get_coverage_pc_buffer_pos(); - // second call shouldn't increase coverage. - bar(); - uintptr_t sz1 = __sanitizer_get_coverage_pc_buffer_pos(); - assert(sz1 == sz); - assertNotZeroPcs(buf.get(), sz1); - } - - { - uintptr_t sz = __sanitizer_get_coverage_pc_buffer_pos(); // reset coverage to 0. __sanitizer_reset_coverage(); uintptr_t sz1 = __sanitizer_get_coverage_pc_buffer_pos(); -- 2.7.4