[sanitizers] remove failing test.
authorMike Aizatsky <aizatsky@chromium.org>
Fri, 5 Aug 2016 20:48:48 +0000 (20:48 +0000)
committerMike Aizatsky <aizatsky@chromium.org>
Fri, 5 Aug 2016 20:48:48 +0000 (20:48 +0000)
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

index 0e0434a..ce4013f 100644 (file)
@@ -11,7 +11,6 @@
 #include <stdio.h>
 
 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();