Skip to content

Commit 5984792

Browse files
msobiersshipilev
authored andcommitted
8316415: Parallelize sun/security/rsa/SignedObjectChain.java subtests
Reviewed-by: shade, rhalade, valeriep
1 parent eeb63cd commit 5984792

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/jdk/sun/security/rsa/SignedObjectChain.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -21,6 +21,8 @@
2121
* questions.
2222
*/
2323

24+
import java.util.Arrays;
25+
2426
/*
2527
* @test
2628
* @bug 8050374 8146293
@@ -31,7 +33,6 @@
3133
* @summary Verify a chain of signed objects
3234
*/
3335
public class SignedObjectChain {
34-
3536
private static class Test extends Chain.Test {
3637

3738
public Test(Chain.SigAlg sigAlg) {
@@ -52,10 +53,9 @@ public Test(Chain.SigAlg sigAlg) {
5253
};
5354

5455
public static void main(String argv[]) {
55-
boolean resutl = java.util.Arrays.stream(tests).allMatch(
56-
(test) -> Chain.runTest(test));
56+
boolean result = Arrays.stream(tests).parallel().allMatch(Chain::runTest);
5757

58-
if(resutl) {
58+
if (result) {
5959
System.out.println("All tests passed");
6060
} else {
6161
throw new RuntimeException("Some tests failed");

0 commit comments

Comments
 (0)