[Lldb-commits] [lldb] r155416 - in /lldb/branches/lldb-platform-work/test/functionalities/conditional_break: .lldb TestConditionalBreak.py

Johnny Chen johnny.chen at apple.com
Mon Apr 23 17:51:47 PDT 2012


Author: johnny
Date: Mon Apr 23 19:51:47 2012
New Revision: 155416

URL: http://llvm.org/viewvc/llvm-project?rev=155416&view=rev
Log:
Separate the "file a.out" command from the "command source .lldb" command so that it could
be intercepted by the test infrastructure and dynamically redefined with remote semantics
when running remotely.

This makes the test cases which invoke simulate_conditional_break_by_user() pass when running remotely.

Modified:
    lldb/branches/lldb-platform-work/test/functionalities/conditional_break/.lldb
    lldb/branches/lldb-platform-work/test/functionalities/conditional_break/TestConditionalBreak.py

Modified: lldb/branches/lldb-platform-work/test/functionalities/conditional_break/.lldb
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/lldb-platform-work/test/functionalities/conditional_break/.lldb?rev=155416&r1=155415&r2=155416&view=diff
==============================================================================
--- lldb/branches/lldb-platform-work/test/functionalities/conditional_break/.lldb (original)
+++ lldb/branches/lldb-platform-work/test/functionalities/conditional_break/.lldb Mon Apr 23 19:51:47 2012
@@ -1,4 +1,4 @@
-file a.out
+#file a.out
 breakpoint set -n c
 script import sys, os
 script sys.path.append(os.path.join(os.getcwd(), os.pardir))

Modified: lldb/branches/lldb-platform-work/test/functionalities/conditional_break/TestConditionalBreak.py
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/lldb-platform-work/test/functionalities/conditional_break/TestConditionalBreak.py?rev=155416&r1=155415&r2=155416&view=diff
==============================================================================
--- lldb/branches/lldb-platform-work/test/functionalities/conditional_break/TestConditionalBreak.py (original)
+++ lldb/branches/lldb-platform-work/test/functionalities/conditional_break/TestConditionalBreak.py Mon Apr 23 19:51:47 2012
@@ -113,6 +113,10 @@
 
         if not self.TraceOn():
             self.HideStdout()
+
+        # Separate out the "file a.out" command from .lldb file, for the sake of
+        # remote testsuite.
+        self.runCmd("file a.out")
         self.runCmd("command source .lldb")
 
         if self.TraceOn():





More information about the lldb-commits mailing list