diff options
author | Greg Clayton <gclayton@apple.com> | 2016-04-19 23:04:35 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2016-04-19 23:04:35 +0000 |
commit | f258bf90179c07cea626a2068276c55bfc9b3fff (patch) | |
tree | 5a4706a39bce373517dc6a872ed37b74b766e618 /lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp | |
parent | 58cd5db4effb68dfe889f28d9f53801dac0a280d (diff) | |
download | bcm5719-llvm-f258bf90179c07cea626a2068276c55bfc9b3fff.tar.gz bcm5719-llvm-f258bf90179c07cea626a2068276c55bfc9b3fff.zip |
llvm::sys::path::home_directory() relies on having "HOME" set in the environment and that might not always be set. Our FileSpec class uses this function to resolve any paths that start with "~/" on systems that support home directories as '~'. I have modified FileSpec::ResolveUsername (llvm::SmallVectorImpl<char> &path) to deal with the cases where llvm::sys::path::home_directory() returns false by digging a little further on unix systems and setting "HOME" in the environment so that subsequent calls to llvm::sys::path::home_directory() will succeed.
I also added a test to ensure we don't regress.
<rdar://problem/25342377>
llvm-svn: 266832
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp')
0 files changed, 0 insertions, 0 deletions