File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
test/API/tools/lldb-dap/runInTerminal Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -128,8 +128,8 @@ def test_runInTerminalInvalidTarget(self):
128128 )
129129 self .assertFalse (response ["success" ])
130130 self .assertIn (
131- "Could not create a target for a program 'INVALIDPROGRAM': 'INVALIDPROGRAM' does not exist" ,
132- response ["message " ],
131+ "'INVALIDPROGRAM' does not exist" ,
132+ response ["body" ][ "error" ][ "format " ],
133133 )
134134
135135 @skipIfWindows
Original file line number Diff line number Diff line change @@ -1303,7 +1303,7 @@ llvm::json::Value CreateCompileUnit(lldb::SBCompileUnit &unit) {
13031303// / https://microsoft.github.io/debug-adapter-protocol/specification#Reverse_Requests_RunInTerminal
13041304llvm::json::Object CreateRunInTerminalReverseRequest (
13051305 llvm::StringRef program, const std::vector<std::string> &args,
1306- const llvm::StringMap<std::string> env, llvm::StringRef cwd,
1306+ const llvm::StringMap<std::string> & env, llvm::StringRef cwd,
13071307 llvm::StringRef comm_file, lldb::pid_t debugger_pid) {
13081308 llvm::json::Object run_in_terminal_args;
13091309 // This indicates the IDE to open an embedded terminal, instead of opening
@@ -1320,7 +1320,7 @@ llvm::json::Object CreateRunInTerminalReverseRequest(
13201320 req_args.push_back (" --launch-target" );
13211321 req_args.push_back (program.str ());
13221322 req_args.insert (req_args.end (), args.begin (), args.end ());
1323- run_in_terminal_args.try_emplace (" args" , args );
1323+ run_in_terminal_args.try_emplace (" args" , req_args );
13241324
13251325 if (!cwd.empty ())
13261326 run_in_terminal_args.try_emplace (" cwd" , cwd);
Original file line number Diff line number Diff line change @@ -530,7 +530,7 @@ llvm::json::Value CreateCompileUnit(lldb::SBCompileUnit &unit);
530530// / Microsoft.
531531llvm::json::Object CreateRunInTerminalReverseRequest (
532532 llvm::StringRef program, const std::vector<std::string> &args,
533- const llvm::StringMap<std::string> env, llvm::StringRef cwd,
533+ const llvm::StringMap<std::string> & env, llvm::StringRef cwd,
534534 llvm::StringRef comm_file, lldb::pid_t debugger_pid);
535535
536536// / Create a "Terminated" JSON object that contains statistics
You can’t perform that action at this time.
0 commit comments