changeset 320:9779169466dc

Runners: include VM arguments during exception printing.
author shade
date Wed, 21 Sep 2016 08:36:47 +0200
parents 8c2a93d25e6a
children 85b7e7326978
files jcstress-core/src/main/java/org/openjdk/jcstress/infra/grading/ExceptionReportPrinter.java
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/jcstress-core/src/main/java/org/openjdk/jcstress/infra/grading/ExceptionReportPrinter.java	Mon Sep 19 16:27:02 2016 +0200
+++ b/jcstress-core/src/main/java/org/openjdk/jcstress/infra/grading/ExceptionReportPrinter.java	Wed Sep 21 08:36:47 2016 +0200
@@ -72,24 +72,25 @@
     }
 
     public void emitTest(TestResult result) throws FileNotFoundException, JAXBException {
+        String label = result.getName() + " " + result.getConfig().jvmArgs;
         switch (result.status()) {
             case CHECK_TEST_ERROR:
-                failures.add(result.getName() + " had failed with the pre-test error.");
+                failures.add(label + " had failed with the pre-test error.");
                 break;
             case TEST_ERROR:
-                failures.add(result.getName() + " had failed with the test error.");
+                failures.add(label + " had failed with the test error.");
                 break;
             case TIMEOUT_ERROR:
-                failures.add(result.getName() + " had timed out.");
+                failures.add(label + " had timed out.");
                 break;
             case VM_ERROR:
-                failures.add(result.getName() + " had failed with the VM error.");
+                failures.add(label + " had failed with the VM error.");
                 break;
             case NORMAL:
                 TestGrading grading = TestGrading.grade(result);
                 if (!grading.failureMessages.isEmpty()) {
                     for (String msg : grading.failureMessages) {
-                        failures.add(result.getName() + ": " + msg);
+                        failures.add(label + ": " + msg);
                     }
                 }
                 break;