summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lldbtest.py
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-03-22 16:30:06 +0000
committerZachary Turner <zturner@google.com>2017-03-22 16:30:06 +0000
commitd8350cf3fce4bb582e99634947f8fc4cbb7cb105 (patch)
tree4235d2ecf9b939aaad68ac76bd1ee402d904f4a1 /lldb/packages/Python/lldbsuite/test/lldbtest.py
parenta3cf70bfa0f11d7da90f11e148be8f9c285c79ac (diff)
downloadbcm5719-llvm-d8350cf3fce4bb582e99634947f8fc4cbb7cb105.tar.gz
bcm5719-llvm-d8350cf3fce4bb582e99634947f8fc4cbb7cb105.zip
Make the home_directory test a little more resilient.
It's possible (albeit strange) for $HOME to intentionally point somewhere other than the user's home directory as reported by the password database. Our test shouldn't fail in this case. This patch updates the test to pull directly from the password database before unsetting $HOME, rather than comparing the return value of home_directory() to the original value of the environment variable. llvm-svn: 298514
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbtest.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud