labath added a comment.
In https://reviews.llvm.org/D49685#1178730, @EugeneBi wrote:
> I looked at the tests - is it all in Python? Not sure I have time to learn a
> new language... Is there anything in C++?
We have unit tests in c++, but it's going to be quite hard to tickle this code
path from there.
FWIW, I don't think you really need to *know* python to write a test like this.
You should be able to fudge it by cargo-culting some code from existing tests
and some basic python examples. I expect the test should be something like:
# copy core file an .exe into an appropriate directory tree
self.runCmd("platform select remote-linux --sysroot '%s'" % sysroot)
target = self.dbg.CreateTarget(None)
process = target.LoadCode(core)
self.assertEquals(1, target.GetNumModules())
self.assertEquals(exe, target.GetModuleAtIndex(0).GetFileSpec())
https://reviews.llvm.org/D49685
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits