changeset 380:03b52bedec8e

Runners: make sure ContendedTestMain does not report false negatives.
author shade
date Thu, 02 Mar 2017 20:50:10 +0100
parents 6dacea0912f4
children 51d888199b32
files jcstress-core/src/main/java/org/openjdk/jcstress/vm/ContendedTestMain.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/jcstress-core/src/main/java/org/openjdk/jcstress/vm/ContendedTestMain.java	Thu Mar 02 18:04:55 2017 +0100
+++ b/jcstress-core/src/main/java/org/openjdk/jcstress/vm/ContendedTestMain.java	Thu Mar 02 20:50:10 2017 +0100
@@ -25,7 +25,6 @@
 package org.openjdk.jcstress.vm;
 
 import org.openjdk.jcstress.annotations.Result;
-import org.openjdk.jcstress.infra.runners.StateHolder;
 import org.openjdk.jcstress.util.Reflections;
 import org.openjdk.jcstress.util.UnsafeHolder;
 
@@ -46,7 +45,7 @@
             throw new IllegalStateException("Classes not found");
         }
 
-        Set<Class> infraClasses = Collections.singleton(StateHolder.class);
+        Set<Class> infraClasses = Collections.emptySet();
 
         for (Class<?> cl : classes) {
             if (!infraClasses.contains(cl) && cl.getAnnotation(Result.class) == null) continue;