changeset 300:26600b6bfb99

Grading: sort outcomes lexicographically.
author shade
date Fri, 17 Jun 2016 18:57:26 +0300
parents da7d08d212be
children 0ce842b0ba5b
files jcstress-core/src/main/java/org/openjdk/jcstress/infra/grading/TestGrading.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/jcstress-core/src/main/java/org/openjdk/jcstress/infra/grading/TestGrading.java	Wed Jun 15 20:56:52 2016 +0300
+++ b/jcstress-core/src/main/java/org/openjdk/jcstress/infra/grading/TestGrading.java	Fri Jun 17 18:57:26 2016 +0300
@@ -31,8 +31,7 @@
 import org.openjdk.jcstress.infra.runners.TestList;
 import org.openjdk.jcstress.util.NonNullArrayList;
 
-import java.util.ArrayList;
-import java.util.List;
+import java.util.*;
 
 /**
  * @author Aleksey Shipilev (aleksey.shipilev@oracle.com)
@@ -119,6 +118,9 @@
                     c.description()
             ));
         }
+
+        Collections.sort(gradingResults,
+                Comparator.comparing(c -> c.id));
     }
 
     public static String failureMessage(String id, Expect expect, long count) {