Replace disableSandbox
with useSandbox
in UtSettings
#857
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
PR #797 introduced a new
UtSettings
option,disableSandbox
(see #785 for motivation). AlthoughdisableSandbox
is a descriptive name, the inverted logic makes it harder to use and does not match the naming of other settings.This PR removes the
disableSandbox
setting and replaces it withuseSandbox
option (true
by default).Type of Change
Existing
UtSettings
option is removed. This change may require users to update their.utbot/settings.properties
to keep the old behavior.How Has This Been Tested?
Automated Testing
All existing unit tests should pass. Informative are tests that use
withoutSandbox
construct:org.utbot.examples.unsafe.UnsafeOperationsTest
org.utbot.examples.exceptions.JvmCrashExamplesTest#testCrash
Manual Scenario
Generate a test suite for any Java code that accesses files or environment. An example:
Concrete execution should be enabled.
if
UtSettings.useSandbox
is set tofalse
, a test case corresponding to a successful execution should be generated:If
UtSettings.useSandbox
istrue
(including the case when it is not specified in.utbot/settings.properties
at all, so the default value is used), a disabled test should be generated:Checklist (remove irrelevant options):
This is the author self-check list