This is an archive of the discontinued LLVM Phabricator instance.

[TestGdbRemoteAbort] Skip on API 16 Android devices
ClosedPublic

Authored by sivachandra on Jun 5 2015, 12:16 PM.

Details

Summary

This change also adds the infrastructure required to specify the API
levels for which tests should be skipped.

Diff Detail

Event Timeline

sivachandra retitled this revision from to [TestGdbRemoteAbort] Skip on API 16 Android devices.
sivachandra updated this object.
sivachandra edited the test plan for this revision. (Show Details)
sivachandra added reviewers: labath, chying.
sivachandra added a subscriber: Unknown Object (MLST).
tberghammer added inline comments.Jun 5 2015, 12:20 PM
test/tools/lldb-server/inferior-crash/TestGdbRemoteAbort.py
35

Why do we want to skip this test for API=16?

sivachandra added inline comments.Jun 5 2015, 12:23 PM
test/tools/lldb-server/inferior-crash/TestGdbRemoteAbort.py
35

For API 16, std::abort raises SIGSEGV and not SIGABRT.

labath added inline comments.Jun 5 2015, 12:35 PM
test/lldbtest.py
945

Why do we need two levels of nested functions here?
The original code seemed to manage just fine with one...

test/tools/lldb-server/inferior-crash/TestGdbRemoteAbort.py
35

Please add a short comment explaining why is this skipped.

sivachandra added inline comments.Jun 5 2015, 12:42 PM
test/lldbtest.py
945

This is per my knowledge of decorators: I think when a decorator takes args, it needs to return a decorator itself. Correct me if I am wrong.

test/tools/lldb-server/inferior-crash/TestGdbRemoteAbort.py
35

Will do.

labath accepted this revision.Jun 5 2015, 12:53 PM
labath edited edge metadata.

lgtm

This revision is now accepted and ready to land.Jun 5 2015, 12:53 PM
sivachandra edited edge metadata.

Address comments.
Fix other occurances of skipIfTargetAndroid.

sivachandra closed this revision.Jun 5 2015, 12:58 PM