changeset 12:d437d8087b3a

generator: remove more duplicate tests.
author shade
date Mon, 08 Jul 2013 19:58:44 +0400
parents d47796d3a928
children 04d8b91e649b
files generator/src/main/java/org/openjdk/jcstress/tracer/TraceGen.java
diffstat 1 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/generator/src/main/java/org/openjdk/jcstress/tracer/TraceGen.java	Mon Jul 08 19:50:17 2013 +0400
+++ b/generator/src/main/java/org/openjdk/jcstress/tracer/TraceGen.java	Mon Jul 08 19:58:44 2013 +0400
@@ -121,9 +121,10 @@
                 scResults.add(mappedValues.toString());
             }
 
-            emit(mt, scResults);
-
-            System.out.print(".");
+            if (mt.traces.size() == 2) {
+                emit(mt, scResults);
+                System.out.print(".");
+            }
         }
         System.out.println();
 
@@ -422,7 +423,12 @@
 
         public MultiTrace(Trace original, List<Trace> copy) {
             this.original = original;
-            this.traces = copy;
+
+            this.traces = new ArrayList<Trace>();
+            for (Trace t : copy) {
+                if (!t.ops.isEmpty())
+                    traces.add(t);
+            }
         }
 
         public List<Trace> linearize() {