[lldb][NFC] Refactor TestSafeFuncCalls.py
authorRaphael Isemann <teemperor@gmail.com>
Fri, 6 Mar 2020 19:21:54 +0000 (11:21 -0800)
committerRaphael Isemann <teemperor@gmail.com>
Fri, 6 Mar 2020 23:46:36 +0000 (15:46 -0800)
commit53b135eeb491802e1fab5edc5435874acb4770da
treeeccf598ffe6761ec83216d466991ecf7502766cb
parent7264cf4e457e759a84bcac45882cad50628dbc15
[lldb][NFC] Refactor TestSafeFuncCalls.py

Summary:
This patch inlines all the single-line functions that we only use once in the test
and replaces the assertTrue with an assertEquals to improve the error message
when this test fails.

Reviewers: JDevlieghere

Reviewed By: JDevlieghere

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D75497
lldb/test/API/macosx/safe-to-func-call/TestSafeFuncCalls.py