EvoSuite / evosuite

EvoSuite - automated generation of JUnit test suites for Java classes
http://www.evosuite.org
GNU Lesser General Public License v3.0
829 stars 340 forks source link

fix Sandbox clear #422

Open SRWFan opened 2 years ago

SRWFan commented 2 years ago

When Properties.RESET_STATIC_FIELDS is true and wasSecurityException || TestSuiteWriterUtils.shouldResetProperties(results) is false,this tool will generate code "Sandbox.initializeSecurityManagerForSUT();" but without code "Sandbox.resetDefaultSecurityManager();".It made securitymanager did not reset,which would make crash on tests on jacoco.