Fix command-script-import.test on linux
authorPavel Labath <pavel@labath.sk>
Wed, 18 Sep 2019 12:58:52 +0000 (12:58 +0000)
committerPavel Labath <pavel@labath.sk>
Wed, 18 Sep 2019 12:58:52 +0000 (12:58 +0000)
commitfc1fd6bf9fcfac412b10b4193805ec5de0e8df57
tree459bb06845105b587daea61164b78ebf8c790f60
parent98c0dc39de24d85e3d7dca488babff952f35578c
Fix command-script-import.test on linux

The test was expecting the value of "lldb.frame" to be None, because it
is cleared after each python interpreter session. However, this is not
true in the very first session, because lldb.py sets these values to
invalid objects (lldb.SBFrame(), etc.).

I have not investigated why is it that this test passes on darwin, but
my guess is that this is because we do extra work on darwin (loading the
objc runtime, etc), which causes us to enter the python interpreter
sooner.

This patch changes lldb.py to also initialize these values to None, as
that seems to make more sense. I also fixed some typos in the test while
I was in there.

llvm-svn: 372222
lldb/lit/Commands/Inputs/frame.py
lldb/lit/Commands/command-script-import.test
lldb/scripts/lldb.swig