[sanitizers] remove failing test.

The test often fails on Windows because there are more branches
in the code that is generated.

llvm-svn: 277862
This commit is contained in:
Mike Aizatsky 2016-08-05 20:48:48 +00:00
parent d4c85af7fd
commit ef70ae9036
1 changed files with 0 additions and 12 deletions

View 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,23 +32,12 @@ 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.