This patch fixes hanging of the test in case of using python3, changes callback function that will be called if the timer ends, changes python interpreter to %python that is set up by llvm-lit.
Also, the test didn't work properly since it didn't contain a call of filecheck_proc.communicate(), that means that filecheck didn't run and its return code was equal to 0 in all cases.
Details
Diff Detail
- Repository
- rLLDB LLDB
Event Timeline
Removed the shebang line since we call the script via python ... so that line doesn't matter.
Sorry, it was added in 3.2. Anyway, the test fails due to __init__() got an unexpected keyword argument 'pass_fds'.
Hmmm, maybe I mixing up something here, but the docs state pass_fds was added in 3.2:
New in version 3.2: The pass_fds parameter was added.
It seems I ran into an unrelated issue like this. If the revision works for others, you may ignore this.
Changed python version required to use 'pass_fds' argument to 3.2.
I tested this patch with python 2.7 and 3.5.
Forget that the test calls default python, not which was passed to cmake. So, it is enough to replace (3,0) pair with (3,2) to fix.
lit/tools/lldb-mi/target/inputs/target-select-so-path.py | ||
---|---|---|
11 | Here should be (3,2) |
Looks good and fixes the tests for me, so I think this is good to go. Thanks for the patch!
Here should be (3,2)