changeset 974:1fe1a9936fa8

runners: exclude pattern should match the benchmark name only.
author shade
date Fri, 22 Aug 2014 11:44:38 +0400
parents 8e48b96c25e2
children 928634dbc9ec
files jmh-core/src/main/java/org/openjdk/jmh/runner/BenchmarkList.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/runner/BenchmarkList.java	Fri Aug 22 11:44:10 2014 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/runner/BenchmarkList.java	Fri Aug 22 11:44:38 2014 +0400
@@ -134,7 +134,7 @@
 
                                 // excludes override
                                 for (Pattern excludePattern : excludePatterns) {
-                                    if (excludePattern.matcher(line).find()) {
+                                    if (excludePattern.matcher(br.getUsername()).find()) {
                                         out.verbosePrintln("Excluding " + br.getUsername() + ", matches " + excludePattern);
 
                                         exclude = true;