When calling readlink, " (deleted)" is appended to executable path if it's deleted. Remove if it's there.
Details
Details
Diff Detail
Diff Detail
Event Timeline
| test/tools/lldb-server/gdbremote_testcase.py | ||
|---|---|---|
| 164 | shell_command.GetOutput().replace('(deleted)', '').strip()No functional difference, but I think this looks nicer. Also, what if someone puts their lldb-server binary in a path containing the word ' (deleted)'? You never know. :) E.g., '/usr/ (deleted)/bin/lldb-server' | |
| test/tools/lldb-server/gdbremote_testcase.py | ||
|---|---|---|
| 164 | re.sub(' \(deleted\)$', '', shell_command.GetOutput().strip())For most correctness. | |
shell_command.GetOutput().replace('(deleted)', '').strip()No functional difference, but I think this looks nicer.
Also, what if someone puts their lldb-server binary in a path containing the word ' (deleted)'? You never know. :)
E.g., '/usr/ (deleted)/bin/lldb-server'