Skip to content

Commit c72408d

Browse files
committed
Testing: catch NegativeArraySizeException in testGenerateSeedWithNegativeArgument()
1 parent f4c2c66 commit c72408d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/java/com/wolfssl/provider/jce/test/WolfCryptRandomTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,9 @@ public void testGenerateSeedWithNegativeArgument()
302302

303303
} catch (IllegalArgumentException e) {
304304
/* Expected exception */
305+
} catch (NegativeArraySizeException e) {
306+
/* Thrown by some Java versions before reaching the provider,
307+
* shows up on Windows */
305308
}
306309
}
307310

0 commit comments

Comments
 (0)