[Lldb-commits] [PATCH] D18985: Fix test cases for big-endian systems
Ulrich Weigand via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 12 05:52:13 PDT 2016
uweigand added a comment.
In http://reviews.llvm.org/D18985#398171, @labath wrote:
> Just because the tests test the console interface, it doesn't mean you can't use the python interface to do auxiliary tasks, like computing the expectations. It sounds like you should be able to to a `self.target.GetByteOrder()` to get the info you need. (use `self.dbg.GetSelectedTarget()` if `self.target` happens to be empty, i don't remember if it's always set).
Indeed, that seems to work fine. Thanks for the tip! I'll update the tests accordingly.
More information about the lldb-commits