changeset 29350:8029ab8b2ec5

8067822: test/testlibrary_tests/RandomGeneratorTest.java failed on Assert Unexpected random number sequence for mode: NO_SEED Summary: On embedded platforms we have a message in std error. We should not take into account the message. Therefore only std out should be used fo verification. Reviewed-by: iignatyev, kvn
author skovalev
date Tue, 24 Feb 2015 15:42:26 +0300
parents 9e9b279c217e
children caf03a304610
files hotspot/test/testlibrary_tests/RandomGeneratorTest.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/test/testlibrary_tests/RandomGeneratorTest.java	Tue Feb 24 16:08:25 2015 +0300
+++ b/hotspot/test/testlibrary_tests/RandomGeneratorTest.java	Tue Feb 24 15:42:26 2015 +0300
@@ -58,7 +58,7 @@
         }
         jvmArgs.add(RandomRunner.class.getName());
         String[] cmdLineArgs = jvmArgs.toArray(new String[jvmArgs.size()]);
-        String etalon = ProcessTools.executeTestJvm(cmdLineArgs).getOutput().trim();
+        String etalon = ProcessTools.executeTestJvm(cmdLineArgs).getStdout().trim();
         seedOpt.verify(etalon, cmdLineArgs);
     }
 
@@ -122,7 +122,7 @@
             String lastLineOrig = getLastLine(orig);
             String lastLine;
             try {
-                lastLine = getLastLine(ProcessTools.executeTestJvm(cmdLine).getOutput().trim());
+                lastLine = getLastLine(ProcessTools.executeTestJvm(cmdLine).getStdout().trim());
             } catch (Throwable t) {
                 throw new Error("TESTBUG: Unexpedted exception during jvm execution.", t);
             }