[compiler-rt] r277862 - [sanitizers] remove failing test.
Mike Aizatsky via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 5 13:48:48 PDT 2016
Author: aizatsky
Date: Fri Aug 5 15:48:48 2016
New Revision: 277862
URL: http://llvm.org/viewvc/llvm-project?rev=277862&view=rev
Log:
[sanitizers] remove failing test.
The test often fails on Windows because there are more branches
in the code that is generated.
Modified:
compiler-rt/trunk/test/asan/TestCases/coverage-pc-buffer.cc
Modified: compiler-rt/trunk/test/asan/TestCases/coverage-pc-buffer.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/coverage-pc-buffer.cc?rev=277862&r1=277861&r2=277862&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/coverage-pc-buffer.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/coverage-pc-buffer.cc Fri Aug 5 15:48:48 2016
@@ -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,24 +32,13 @@ 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);
}
{
- 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();
More information about the llvm-commits
mailing list