mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8067822: test/testlibrary_tests/RandomGeneratorTest.java failed on Assert Unexpected random number sequence for mode: NO_SEED
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
This commit is contained in:
parent
7fdd3ff35d
commit
3d215c0b63
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ public class RandomGeneratorTest {
|
||||||
}
|
}
|
||||||
jvmArgs.add(RandomRunner.class.getName());
|
jvmArgs.add(RandomRunner.class.getName());
|
||||||
String[] cmdLineArgs = jvmArgs.toArray(new String[jvmArgs.size()]);
|
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);
|
seedOpt.verify(etalon, cmdLineArgs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ public class RandomGeneratorTest {
|
||||||
String lastLineOrig = getLastLine(orig);
|
String lastLineOrig = getLastLine(orig);
|
||||||
String lastLine;
|
String lastLine;
|
||||||
try {
|
try {
|
||||||
lastLine = getLastLine(ProcessTools.executeTestJvm(cmdLine).getOutput().trim());
|
lastLine = getLastLine(ProcessTools.executeTestJvm(cmdLine).getStdout().trim());
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
throw new Error("TESTBUG: Unexpedted exception during jvm execution.", t);
|
throw new Error("TESTBUG: Unexpedted exception during jvm execution.", t);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue