This is an archive of the discontinued LLVM Phabricator instance.

Make TestCreateDuringInstructionStep linux-specific
ClosedPublic

Authored by labath on Aug 24 2015, 5:57 AM.

Details

Summary

There were a number of issues about the way I have designed this test originally:

  • it relied on single-stepping through large parts of code, which was slow and unreliable
  • the threading libraries interfered with the exact thing we wanted to test

For this reason, I have rewritted the test using low-level linux api, which allows the test to be
much more focused. The functionality for other platforms will need to be tested separately.

Diff Detail

Repository
rL LLVM

Event Timeline

labath updated this revision to Diff 32950.Aug 24 2015, 5:57 AM
labath retitled this revision from to Make TestCreateDuringInstructionStep linux-specific.
labath updated this object.
labath added a reviewer: tberghammer.
labath added a subscriber: lldb-commits.
tberghammer accepted this revision.Aug 24 2015, 6:13 AM
tberghammer edited edge metadata.

Looks good with 2 minor comments

  • After the renames the test path don't say that the test is thread related. I think you should add it back to somewhere (e.g. to the test name)
  • Should we test the thread destroy during instruction single stepping scenario also? Can it hit the same or a similar issue?
This revision is now accepted and ready to land.Aug 24 2015, 6:13 AM

There is a similar issue during thread destruction, although the underlying reason is a bit different. I have created bug #24551 to track that.

This revision was automatically updated to reflect the committed changes.
lldb/trunk/test/functionalities/thread/create_during_instruction_step/TestCreateDuringInstructionStep.py