aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSorin Basca <sorinbasca@google.com>2022-07-06 12:47:05 +0100
committerSorin Basca <sorinbasca@google.com>2022-07-06 12:48:29 +0100
commit9de98cc93a32c8a1529386fdefb64986b4624d9e (patch)
tree4dcfc67f1ccdf75fe3a05229a292d42a164b952b
parent9983a2f8ab169ba7d8f51c2ca6d8fb9366495d4b (diff)
downloadrobolectric-shadows-9de98cc93a32c8a1529386fdefb64986b4624d9e.tar.gz
Open jdk.internal.util.random for Robolectric tests
Bug: 236636175 Bug: 238100560 Test: m RunBackupEncryptionRoboTests Change-Id: Iaccd989074cf135ae287066f07c35505815ccf9f
-rwxr-xr-xrobotest.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/robotest.sh b/robotest.sh
index d4f95486e..824c7b0ef 100755
--- a/robotest.sh
+++ b/robotest.sh
@@ -73,6 +73,7 @@ function junit() {
# Remove the timeout so Robolectric doesn't get killed while debugging
local debug_timeout="0"
fi
+ # For --add-opens jdk.internal.util.random see b/238100560.
local command=(
"${PRIVATE_ROBOLECTRIC_SCRIPT_PATH}/java-timeout"
"${debug_timeout:-${PRIVATE_TIMEOUT}}"
@@ -83,6 +84,7 @@ function junit() {
-cp "$classpath"
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED
+ --add-opens=java.base/jdk.internal.util.random=ALL-UNNAMED
com.android.junitxml.JUnitXmlRunner
)
echo "${command[@]}" "$@"