Skip to content
  1. Jun 24, 2011
    • Johnny Chen's avatar
      o lldbtest.py: · b7373c92
      Johnny Chen authored
      Assign the test method name to self.testMethodName.  This can be useful for the
      test directory (see test/types for a good example) which houses a bunch of executables
      compiled from different source files.  The default build action is to create a.out as
      the binary executable, which can confuse the module cacheing mechanism and result in
      the debugger getting a stale image as the target to be debugged, and chaos ensues.
      
      o AbstractBase.py, TestThreadAPI.py:
      
      Use self.testMethodName to our advantage.
      
      o TestLoadUnload.py:
      
      Add expected failure marker to test case test_modules_search_paths().
      
      llvm-svn: 133768
      b7373c92
  2. Jun 21, 2011
  3. Jun 20, 2011
  4. Jun 15, 2011
    • Johnny Chen's avatar
      Simplify the base test class. Remove keyword argument setCookie from TestBase.runCmd() and · 5b67ca8c
      Johnny Chen authored
      remove the self.runStarted attribute since the automatic shutdown of processes associated
      with the targets are now performed automatically.
      
      llvm-svn: 133092
      5b67ca8c
    • Johnny Chen's avatar
      Add an API to SBDebugger class: · 3794ad95
      Johnny Chen authored
          bool SBDebugger::DeleteTarget(lldb::SBTarget &target);
      
      which is used in the test tearDown() phase to cleanup the debugger's target list
      so that it won't grow larger and larger as test cases are executed.  This is also
      a good opportunity to get rid of the arcane requirement that test cases exercising
      the Python API must assign the process object to self.process so that it gets
      shutdown gracefully.  Instead, the shutdown of the process associated with each
      target is now being now automatically.
      
      Also get rid of an API from SBTarget class:
      
          SBTarget::DeleteTargetFromList(lldb_private::TargetList *list);
      
      llvm-svn: 133091
      3794ad95
  5. Jun 14, 2011
  6. Jun 06, 2011
  7. Jun 01, 2011
  8. May 28, 2011
  9. May 25, 2011
  10. May 07, 2011
  11. May 06, 2011
  12. May 05, 2011
  13. May 04, 2011
  14. May 03, 2011
  15. Apr 27, 2011
  16. Apr 22, 2011
  17. Apr 19, 2011
  18. Apr 18, 2011
  19. Apr 15, 2011
  20. Mar 23, 2011
    • Johnny Chen's avatar
      Turns out that the test failure wrt: · ac77f3b2
      Johnny Chen authored
          rdar://problem/9173060 lldb hangs while running unique-types
      
      disappears if running with clang version >= 3.  Modify the TestUniqueTypes.py
      to detect if we are running with clang version < 3 and, if true, skip the test.
      
      Update the lldbtest.system() function to return a tuple of (stdoutdata, stderrdata)
      since we need the stderr data from "clang -v" command.  Modify existing clients of
      lldbtest.system() to now use, for example:
      
               # First, capture the golden output emitted by the oracle, i.e., the
               # series of printf statements.
      -        go = system("./a.out", sender=self)
      +        go = system("./a.out", sender=self)[0]
               # This golden list contains a list of (variable, value) pairs extracted
               # from the golden output.
               gl = []
      
      And add two utility functions to lldbutil.py.
      
      llvm-svn: 128162
      ac77f3b2
  21. Mar 12, 2011
    • Johnny Chen's avatar
      Add a test directory stop-hook to test the newly added "target stop-hook" command. · b877f1ef
      Johnny Chen authored
      This uses pexpect module to spawn a 'lldb' program and uses pseudo-TTY to talk to
      the child application.
      
      The test cases test setting breakpoints, adding a stop-hook with line range, and
      verifies that when the inferior stops, the stop-hook will fire off when it is
      within range and will not fire off when it is out of range.
      
      llvm-svn: 127519
      b877f1ef
  22. Mar 11, 2011
  23. Jan 27, 2011
  24. Jan 23, 2011
  25. Jan 19, 2011
  26. Dec 23, 2010
  27. Dec 15, 2010
  28. Dec 13, 2010
  29. Dec 10, 2010
  30. Dec 09, 2010
Loading