This is an archive of the discontinued LLVM Phabricator instance.

Fix and enable some tests on Linux (MI)
ClosedPublic

Authored by ki.stfu on Mar 1 2015, 2:50 PM.

Details

Summary

Fix and enable some lldb-mi tests on Linux:

Fixed:

  1. MiExecInterpreterTestCase.test_lldbmi_thread_step_in
  2. MiExecTestCase.test_lldbmi_exec_step
  3. MiStackTestCase.test_lldbmi_stack_info_frame tests.

Also I enabled the following tests on Linux:

  1. MiExecTestCase.test_lldbmi_exec_step_instruction
  2. MiSignalTestCase.test_lldbmi_stopped_when_interrupted

All test pass on OS X and Linux.

Diff Detail

Repository
rL LLVM

Event Timeline

ki.stfu planned changes to this revision.Mar 1 2015, 2:50 PM
ki.stfu updated this revision to Diff 20967.
ki.stfu retitled this revision from to Fix and enable some tests on Linux (MI).
ki.stfu updated this object.
ki.stfu edited the test plan for this revision. (Show Details)
ki.stfu added reviewers: abidh, clayborg.
ki.stfu set the repository for this revision to rL LLVM.
ki.stfu added subscribers: abidh, clayborg, Unknown Object (MLST).

Need to check these changes on Darwin.

tools/lldb-mi/stack/TestMiStack.py
299 ↗(On Diff #20967)

fixme

ki.stfu added inline comments.Mar 1 2015, 3:00 PM
tools/lldb-mi/control/TestMiExec.py
316 ↗(On Diff #20967)

Remove this

vharron requested changes to this revision.Mar 1 2015, 11:50 PM
vharron added a reviewer: vharron.
vharron added a subscriber: vharron.

I tried this out and didn't see any improvement with the patch on Linux. Can you try again against top-of-tree? Linux now does local and remote debugging via lldb-server.

ki.stfu added a comment.EditedMar 2 2015, 12:18 AM

I tried this out and didn't see any improvement with the patch on Linux.

This patch fixes the following tests on Linux:

  1. MiExecInterpreterTestCase.test_lldbmi_thread_step_in
  2. MiExecTestCase.test_lldbmi_exec_step
  3. MiStackTestCase.test_lldbmi_stack_info_frame tests.

Also I enabled the following tests on Linux:

  1. MiExecTestCase.test_lldbmi_exec_step_instruction
  2. MiSignalTestCase.test_lldbmi_stopped_when_interrupted

As I said this patch was tested on Linux, specifically on Ubuntu 14.10.

ki.stfu updated this object.Mar 2 2015, 2:30 AM
ki.stfu edited edge metadata.
ki.stfu updated this revision to Diff 20991.Mar 2 2015, 2:42 AM
ki.stfu edited edge metadata.

little improvements; remove unnecessary changes

ki.stfu updated this object.Mar 2 2015, 2:42 AM
ki.stfu edited edge metadata.
clayborg accepted this revision.Mar 2 2015, 10:32 AM
clayborg edited edge metadata.
ki.stfu updated this revision to Diff 21103.Mar 3 2015, 7:31 AM
ki.stfu edited edge metadata.

update some comments

This revision was automatically updated to reflect the committed changes.