diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-04-12 16:33:53 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-04-12 16:33:53 +0000 |
commit | 1834dc752065a701493194af8c61c6a346adcd4e (patch) | |
tree | e03debfefc518ad983c32d976581661e8c0e22ef /lldb/packages/Python/lldbsuite/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py | |
parent | 279970c0dc769dc24e5b66ed8fa6fcdc7653d4f4 (diff) | |
download | bcm5719-llvm-1834dc752065a701493194af8c61c6a346adcd4e.tar.gz bcm5719-llvm-1834dc752065a701493194af8c61c6a346adcd4e.zip |
[FileManager] Don't crash if reading from stdin and stat(".") fails
addAncestorsAsVirtualDirs("<stdin>") quickly returns without doing work
because "<stdin>" has no parent_path. This violates the expectation
that a subsequent call to getDirectoryFromFile("<stdin>") would succeed.
Instead, it fails because it uses the "." if the file has no path
component.
Fix this by keeping the behavior between addAncestorsAsVirtualDirs and
getDirectoryFromFile symmetric.
llvm-svn: 266089
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/expr-in-syscall/TestExpressionInSyscall.py')
0 files changed, 0 insertions, 0 deletions