Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Kubitz2021-06-15 11:37:22 +0000
committerAndrey Loskutov2021-06-15 19:08:06 +0000
commit19766e7dd0c3deed8da9280d3815dfa53310a150 (patch)
tree01168cf2d03eacb189ee4725dedaf24c4f74cfa5
parent3edbf80bd94c3cf7618be4a0f5b0736c0c353713 (diff)
downloadrt.equinox.framework-19766e7dd0c3deed8da9280d3815dfa53310a150.tar.gz
rt.equinox.framework-19766e7dd0c3deed8da9280d3815dfa53310a150.tar.xz
rt.equinox.framework-19766e7dd0c3deed8da9280d3815dfa53310a150.zip
Bug 571531 - avoid spamming the console outputI20210615-1800
Change-Id: Ibc15b907aa7e1527c12f8be872decc50f3f501d4 Signed-off-by: Joerg Kubitz <jkubitz-eclipse@gmx.de> Reviewed-on: https://git.eclipse.org/r/c/equinox/rt.equinox.framework/+/181984 Tested-by: Equinox Bot <equinox-bot@eclipse.org> Reviewed-by: Andrey Loskutov <loskutov@gmx.de>
-rw-r--r--bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/securityadmin/SecurityAdminUnitTests.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/securityadmin/SecurityAdminUnitTests.java b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/securityadmin/SecurityAdminUnitTests.java
index 5e61766cb..3c47ea971 100644
--- a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/securityadmin/SecurityAdminUnitTests.java
+++ b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/securityadmin/SecurityAdminUnitTests.java
@@ -1160,7 +1160,7 @@ public class SecurityAdminUnitTests extends AbstractBundleTests {
testPermission(acc, new FilePermission(relativeExecutable.getAbsolutePath(), "execute"), true);
}
- public void testPermissionCheckCache() {
+ public void testPermissionCheckCache() { // takes ~6sec
// test single row with signer condition
ConditionalPermissionUpdate update = cpa.newConditionalPermissionUpdate();
List rows = update.getConditionalPermissionInfos();
@@ -1172,12 +1172,10 @@ public class SecurityAdminUnitTests extends AbstractBundleTests {
for (int i = 0; i < 10000000; i++) {
try {
- if (i % 1000 == 0) {
- System.out.println("i=" + i);
- }
acc.checkPermission(new FilePermission("test" + i, "read")); //$NON-NLS-1$ //$NON-NLS-2$
} catch (AccessControlException e) {
- fail("Unexpected AccessControlExcetpion", e); //$NON-NLS-1$
+ System.out.println("i=" + i);
+ fail("Unexpected AccessControlException at i=" + i, e); //$NON-NLS-1$
}
}

Back to the top