Some tests assume that there is no -limitmods option used and fail if it is used.
Tests which are known to suffer from this problem:
java/lang/invoke/modules/ModuleAccessControlTest.java
java/lang/reflect/Proxy/ProxyClassAccessTest.java
java/lang/reflect/Proxy/ProxyTest.java
java/util/logging/modules/GetResourceBundleTest.java
java/util/ResourceBundle/modules/security/TestPermission.java
jdk/modules/scenarios/container/ContainerTest.java
tools/jar/modularJar/Basic.java
tools/launcher/modules/addexports/AddExportsTest.java