Fix TestCommandScript: return an error if target executable is not set
authorEd Maste <emaste@freebsd.org>
Thu, 28 May 2015 14:22:57 +0000 (14:22 +0000)
committerEd Maste <emaste@freebsd.org>
Thu, 28 May 2015 14:22:57 +0000 (14:22 +0000)
commit7daee53732c7e922109ae6d5fb8107cfc0e4eab6
tree7350c52d24353110c81a064e9e6b53e20756c950
parent9720283e994c6c3187cff8724bf0c2ed59d04f8c
Fix TestCommandScript: return an error if target executable is not set

The test invokes the 'targetname' test command before setting a
target executable, which caused Python to raise TypeError: cannot
concatenate 'str' and 'NoneType' objects.

llvm.org/pr23686

llvm-svn: 238425
lldb/test/functionalities/command_script/welcome.py