[PATCH] D18845: [sancov] enabling coverage edge pruning by default.
Mike Aizatsky via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 6 16:29:50 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL265614: [sancov] enabling coverage edge pruning by default. (authored by aizatsky).
Changed prior to commit:
http://reviews.llvm.org/D18845?vs=52860&id=52868#toc
Repository:
rL LLVM
http://reviews.llvm.org/D18845
Files:
compiler-rt/trunk/test/asan/TestCases/Posix/coverage-sandboxing.cc
compiler-rt/trunk/test/asan/TestCases/coverage-levels.cc
compiler-rt/trunk/test/asan/TestCases/coverage-pc-buffer.cc
compiler-rt/trunk/test/msan/coverage-levels.cc
compiler-rt/trunk/test/ubsan/TestCases/Misc/coverage-levels.cc
Index: compiler-rt/trunk/test/ubsan/TestCases/Misc/coverage-levels.cc
===================================================================
--- compiler-rt/trunk/test/ubsan/TestCases/Misc/coverage-levels.cc
+++ compiler-rt/trunk/test/ubsan/TestCases/Misc/coverage-levels.cc
@@ -37,5 +37,5 @@
// FIXME: Currently, ubsan with -fno-sanitize-recover and w/o asan will fail
// to dump coverage.
// CHECK1: 1 PCs written
-// CHECK2: 3 PCs written
-// CHECK3: 3 PCs written
+// CHECK2: 2 PCs written
+// CHECK3: 2 PCs written
Index: compiler-rt/trunk/test/msan/coverage-levels.cc
===================================================================
--- compiler-rt/trunk/test/msan/coverage-levels.cc
+++ compiler-rt/trunk/test/msan/coverage-levels.cc
@@ -24,5 +24,5 @@
// CHECK_WARN: WARNING: MemorySanitizer: use-of-uninitialized-value
// CHECK_NOWARN-NOT: ERROR
// CHECK1: 1 PCs written
-// CHECK2: 2 PCs written
-// CHECK3: 3 PCs written
+// CHECK2: 1 PCs written
+// CHECK3: 2 PCs written
Index: compiler-rt/trunk/test/asan/TestCases/Posix/coverage-sandboxing.cc
===================================================================
--- compiler-rt/trunk/test/asan/TestCases/Posix/coverage-sandboxing.cc
+++ compiler-rt/trunk/test/asan/TestCases/Posix/coverage-sandboxing.cc
@@ -79,8 +79,8 @@
#endif
// CHECK-vanilla: PID: [[PID:[0-9]+]]
-// CHECK-vanilla: .so.[[PID]].sancov: 258 PCs written
+// CHECK-vanilla: .so.[[PID]].sancov: 257 PCs written
// CHECK-vanilla: [[PID]].sancov: 1 PCs written
// CHECK-sandbox: PID: [[PID:[0-9]+]]
-// CHECK-sandbox: 258 PCs written to packed file
+// CHECK-sandbox: 257 PCs written to packed file
Index: compiler-rt/trunk/test/asan/TestCases/coverage-levels.cc
===================================================================
--- compiler-rt/trunk/test/asan/TestCases/coverage-levels.cc
+++ compiler-rt/trunk/test/asan/TestCases/coverage-levels.cc
@@ -25,10 +25,10 @@
// CHECK1: CovDump: bitset of 1 bits written for '{{.*}}', 1 bits are set
// CHECK1: 1 PCs written
-// CHECK2: CovDump: bitset of 3 bits written for '{{.*}}', 2 bits are set
-// CHECK2: 2 PCs written
-// CHECK3: CovDump: bitset of 4 bits written for '{{.*}}', 3 bits are set
-// CHECK3: 3 PCs written
+// CHECK2: CovDump: bitset of 2 bits written for '{{.*}}', 1 bits are set
+// CHECK2: 1 PCs written
+// CHECK3: CovDump: bitset of 3 bits written for '{{.*}}', 2 bits are set
+// CHECK3: 2 PCs written
// CHECK3_NOBITSET-NOT: bitset of
// CHECK3_NOPCS-NOT: PCs written
-// CHECK_COUNTERS: CovDump: 4 counters written for
+// CHECK_COUNTERS: CovDump: 3 counters written for
Index: compiler-rt/trunk/test/asan/TestCases/coverage-pc-buffer.cc
===================================================================
--- compiler-rt/trunk/test/asan/TestCases/coverage-pc-buffer.cc
+++ compiler-rt/trunk/test/asan/TestCases/coverage-pc-buffer.cc
@@ -37,7 +37,7 @@
uintptr_t sz2 = __sanitizer_get_coverage_pc_buffer(&buf2);
assertNotZeroPcs(buf2, sz2);
assert(buf2 == buf);
- assert(sz2 > sz1);
+ assert(sz2 == sz1);
__sanitizer_reset_coverage();
uintptr_t *buf3 = NULL;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18845.52868.patch
Type: text/x-patch
Size: 3115 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160406/a0feaca2/attachment.bin>
More information about the llvm-commits
mailing list