changeset 217:116fcb6098b7

7901329: Improve test matching in -t
author shade
date Tue, 10 Mar 2015 12:27:11 +0300
parents 480a21ea8192
children 5fcd4f948639
files jcstress-core/src/main/java/org/openjdk/jcstress/JCStress.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jcstress-core/src/main/java/org/openjdk/jcstress/JCStress.java	Tue Mar 10 12:16:02 2015 +0300
+++ b/jcstress-core/src/main/java/org/openjdk/jcstress/JCStress.java	Tue Mar 10 12:27:11 2015 +0300
@@ -282,7 +282,7 @@
 
         Pattern pattern = Pattern.compile(filter);
         for (String testName : TestList.tests()) {
-            if (pattern.matcher(testName).matches()) {
+            if (pattern.matcher(testName).find()) {
                 s.add(testName);
             }
         }