Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 310124 - AccessControlException when running eclipse tests
Summary: AccessControlException when running eclipse tests
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows Vista
: P3 minor (vote)
Target Milestone: 3.6 M7   Edit
Assignee: Thomas Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-22 10:39 EDT by Lazar Kirchev CLA
Modified: 2010-04-22 10:59 EDT (History)
1 user (show)

See Also:


Attachments
Stacktrace of the AccessControlException (2.95 KB, text/plain)
2010-04-22 10:41 EDT, Lazar Kirchev CLA
no flags Details
Proposed patch (754 bytes, patch)
2010-04-22 10:42 EDT, Lazar Kirchev CLA
tjwatson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lazar Kirchev CLA 2010-04-22 10:39:49 EDT
Build Identifier: 3.5.2

When running the eclipse tests from command line two times one after the other, the second time an AccessControlException is thrown. However, if the equinox bundle repository is deleted before the second execution, the tests run successfully. 

It seems as if the problem is in the CompositeSecurityTests class - in it method testLinkSecurity01() a composite bundle is created and installed, but is not uninstalled. If the test is patched so that it uninstalls the composite bundle, then no exception is thrown and the tests are executed without deleting the bundles repository.



Reproducible: Always

Steps to Reproduce:
1. Run the eclipse tests from command line
2. Run the tests for the second time
3. Observe the AccessControlException (stack trace attached)
Comment 1 Lazar Kirchev CLA 2010-04-22 10:41:01 EDT
Created attachment 165773 [details]
Stacktrace of the AccessControlException
Comment 2 Lazar Kirchev CLA 2010-04-22 10:42:33 EDT
Created attachment 165775 [details]
Proposed patch

The patch adds to the end of CompositeSecurityTests.testLinkSecurity01() uninstallation of the test bundle.
Comment 3 Thomas Watson CLA 2010-04-22 10:58:50 EDT
Thanks patch released.