[Bug 23403] New: Many LLDB-MI tests time out in Ubuntu 14.10 x86_64 VirtualBox VM

Bug ID 23403
Summary Many LLDB-MI tests time out in Ubuntu 14.10 x86_64 VirtualBox VM
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@cs.uiuc.edu
Reporter vadim.macagon@gmail.com
Classification Unclassified

Many of the LLDB-MI tests fail due to time out when I run them from my Ubuntu
14.10 64-bit Virtualbox VM. After a bit of trial and error I realized that if a
test is modified to wait for the "(gdb)" prompt after spawning the LLDB-MI
child process then the test will run to completion. The test in TestMiPrompt.py
is structured in this way and it was the only one I tried that didn't fail out
of the box. This is what it does:

self.spawnLldbMi(args = None)

# Test that lldb-mi is ready after startup
self.expect(self.child_prompt, exactly = True)

For example, initially all tests in TestMiFile.py failed due to time outs, but
after I added the line above to each one of them they ran to completion. I used
this command to run the tests:

python dotest.py -A x86_64 -C clang --executable ~/Projects/llvm-build/bin/lldb
tools/lldb-mi/ -t -p TestMiFile

And here's a trace from one of the failing tests in TestMiFile.py before I
modified it (the rest of the tests in there failed the same way):

Vadim Macagon changed bug 23403