summaryrefslogtreecommitdiff
path: root/cmdline/cmdline_parser_test.cc
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2018-01-29 13:26:45 -0800
committer Alex Light <allight@google.com> 2018-01-30 09:11:16 -0800
commitb06bd683aab50a80ef98f0ffbec9880dad068d15 (patch)
treed9787a74a4b57fcdffd74fe98cf0f6ae74e21f85 /cmdline/cmdline_parser_test.cc
parent0406e1e59970399393f53923704e1b9a828b2173 (diff)
Make the runtime default to not allowing JDWP again.
This was unintentionally changed a while ago and is causing a CTS test to fail. Changed to make the runtime default to disabling jdwp if a provider isn't given. Note this does not stop one from starting a debugger with -agentpath. If jdwp options are given with jdwp disabled the runtime will print a warning. Test: atest CtsJdwpSecurityHostTestCases Test: ./test/run-test --host --debug 001-HelloWorld Bug: 72400560 Change-Id: I6561f269d9279eba0c1ac0b0f593ece867dab49e
Diffstat (limited to 'cmdline/cmdline_parser_test.cc')
-rw-r--r--cmdline/cmdline_parser_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/cmdline_parser_test.cc b/cmdline/cmdline_parser_test.cc
index 1e79fdff1b..3cb9731a17 100644
--- a/cmdline/cmdline_parser_test.cc
+++ b/cmdline/cmdline_parser_test.cc
@@ -369,7 +369,7 @@ TEST_F(CmdlineParserTest, DISABLED_TestXGcOption) {
*/
TEST_F(CmdlineParserTest, TestJdwpProviderEmpty) {
{
- EXPECT_SINGLE_PARSE_DEFAULT_VALUE(JdwpProvider::kInternal, "", M::JdwpProvider);
+ EXPECT_SINGLE_PARSE_DEFAULT_VALUE(JdwpProvider::kNone, "", M::JdwpProvider);
}
} // TEST_F