Revert r238425, it undoes the purpose of the test

llvm.org/pr23686

llvm-svn: 238437
This commit is contained in:
Ed Maste 2015-05-28 15:58:10 +00:00
parent b90541519e
commit 8e45371307
1 changed files with 3 additions and 7 deletions

View File

@ -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