[Lldb-commits] [PATCH] D39010: lldb-server tests: Propagate environment variables (pr34192)
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 20 15:39:32 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL316244: lldb-server tests: Propagate environment variables (pr34192) (authored by labath).
Repository:
rL LLVM
https://reviews.llvm.org/D39010
Files:
lldb/trunk/unittests/tools/lldb-server/tests/TestClient.cpp
Index: lldb/trunk/unittests/tools/lldb-server/tests/TestClient.cpp
===================================================================
--- lldb/trunk/unittests/tools/lldb-server/tests/TestClient.cpp
+++ lldb/trunk/unittests/tools/lldb-server/tests/TestClient.cpp
@@ -101,6 +101,14 @@
}
bool TestClient::SetInferior(llvm::ArrayRef<std::string> inferior_args) {
+ StringList env;
+ Host::GetEnvironment(env);
+ for (size_t i = 0; i < env.GetSize(); ++i) {
+ if (SendEnvironmentPacket(env[i].c_str()) != 0) {
+ GTEST_LOG_(ERROR) << "failed to set environment variable `" << env[i] << "`";
+ return false;
+ }
+ }
std::stringstream command;
command << "A";
for (size_t i = 0; i < inferior_args.size(); i++) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39010.119720.patch
Type: text/x-patch
Size: 738 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20171020/f3767557/attachment.bin>
More information about the lldb-commits
mailing list