This is an archive of the discontinued LLVM Phabricator instance.

Avoid dirtying the source tree in breakpoint command tests
ClosedPublic

Authored by labath on Feb 19 2018, 7:05 AM.

Details

Summary

The paralelization patch exposed a bunch of cases where we were still
touching the source tree (as these tests were now stepping on each
others toes and being flaky).

This patch removes such issues from breakpoint command tests. Since the
only reason they were creating files was to indirectly test whether the
breakpoint commands got executed (and plumbing the full build tree path
to all places that needed it would be messy) I decided to modify the
tests to check for a different side effect instead: modification of a
global variable. This also makes the code simpler as checking the value
of the global variable is easier, and there is nothing to clean up.

As the tests aren't really doing anything debug-info related, I took the
opportunity to also mark them as NO_DEBUG_INFO_TESTCASEs.

Diff Detail

Repository
rL LLVM

Event Timeline

labath created this revision.Feb 19 2018, 7:05 AM
davide accepted this revision.Feb 19 2018, 7:09 AM
davide added a subscriber: davide.

LGTM, thanks for doing this :)

This revision is now accepted and ready to land.Feb 19 2018, 7:09 AM
This revision was automatically updated to reflect the committed changes.