[Lldb-commits] [lldb] r238437 - Revert r238425, it undoes the purpose of the test

Ed Maste emaste at freebsd.org
Thu May 28 08:58:11 PDT 2015


Author: emaste
Date: Thu May 28 10:58:10 2015
New Revision: 238437

URL: http://llvm.org/viewvc/llvm-project?rev=238437&view=rev
Log:
Revert r238425, it undoes the purpose of the test

llvm.org/pr23686

Modified:
    lldb/trunk/test/functionalities/command_script/welcome.py

Modified: lldb/trunk/test/functionalities/command_script/welcome.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/command_script/welcome.py?rev=238437&r1=238436&r2=238437&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/command_script/welcome.py (original)
+++ lldb/trunk/test/functionalities/command_script/welcome.py Thu May 28 10:58:10 2015
@@ -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





More information about the lldb-commits mailing list