diff options
author | Ilia K <ki.stfu@gmail.com> | 2015-09-10 09:24:43 +0000 |
---|---|---|
committer | Ilia K <ki.stfu@gmail.com> | 2015-09-10 09:24:43 +0000 |
commit | dae2e564d87e0517fc87c41342de59dc2c685e28 (patch) | |
tree | a1b9d054d7b6543d6581c680347115fbb31dd061 /llvm/lib/Support/StringRef.cpp | |
parent | 22b46291f4671761a966a3a343944f9499c634e4 (diff) | |
download | llvm-dae2e564d87e0517fc87c41342de59dc2c685e28.zip llvm-dae2e564d87e0517fc87c41342de59dc2c685e28.tar.gz llvm-dae2e564d87e0517fc87c41342de59dc2c685e28.tar.bz2 |
Fix an AttributeError in dotest.py if --executable points to a wrong place
This patch fixes the following case:
```
$ ./dotest.py --executable=~/p/llvm/build_ninja/bin/lldb tools/lldb-mi/
'~/p/llvm/build_ninja/bin/lldb' is not a path to a valid executable
Traceback (most recent call last):
File "./dotest.py", line 1306, in <module>
setupSysPath()
File "./dotest.py", line 1004, in setupSysPath
if not lldbtest_config.lldbExec:
AttributeError: 'module' object has no attribute 'lldbExec'
```
And with this fix:
```
$ ./dotest.py --executable=~/p/llvm/build_ninja/bin/lldb tools/lldb-mi/
'~/p/llvm/build_ninja/bin/lldb' is not a path to a valid executable
The 'lldb' executable cannot be located. Some of the tests may not be run as a result.
```
llvm-svn: 247256
Diffstat (limited to 'llvm/lib/Support/StringRef.cpp')
0 files changed, 0 insertions, 0 deletions