summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/command_script
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2015-05-28 15:58:10 +0000
committerEd Maste <emaste@freebsd.org>2015-05-28 15:58:10 +0000
commit8e453713076b3bc901b6ba91bd78adbff4cf19f4 (patch)
tree96e89e9fbfcb7cbbb3621797ec8b7ba725485c20 /lldb/test/functionalities/command_script
parentb90541519e1e32e1f88db7e99d7c8185b409aeac (diff)
downloadbcm5719-llvm-8e453713076b3bc901b6ba91bd78adbff4cf19f4.tar.gz
bcm5719-llvm-8e453713076b3bc901b6ba91bd78adbff4cf19f4.zip
Revert r238425, it undoes the purpose of the test
llvm.org/pr23686 llvm-svn: 238437
Diffstat (limited to 'lldb/test/functionalities/command_script')
-rw-r--r--lldb/test/functionalities/command_script/welcome.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/lldb/test/functionalities/command_script/welcome.py b/lldb/test/functionalities/command_script/welcome.py
index f7e6a7ebc74..c6d4ddcfd40 100644
--- a/lldb/test/functionalities/command_script/welcome.py
+++ b/lldb/test/functionalities/command_script/welcome.py
@@ -16,15 +16,11 @@ class TargetnameCommand(object):
pass
def __call__(self, debugger, args, exe_ctx, result):
- if args == 'fail':
- result.SetError('a test for error in command')
- return
target = debugger.GetSelectedTarget()
file = target.GetExecutable()
- if file:
- print >>result, ('Current target ' + file.GetFilename())
- else:
- result.SetError('target.GetExecutable() failed')
+ print >>result, ('Current target ' + file.GetFilename())
+ if args == 'fail':
+ result.SetError('a test for error in command')
def get_flags(self):
return lldb.eCommandRequiresTarget
OpenPOWER on IntegriCloud