Skip to content
  1. Sep 21, 2010
    • Johnny Chen's avatar
      Decorated PersistentVariablesTestCase.test_persistent_variables() with · 2989bfa8
      Johnny Chen authored
      @expectedFailure as of r114384.
      
      llvm-svn: 114466
      2989bfa8
    • Johnny Chen's avatar
      Changed the order of two assignment stmts. · 958da040
      Johnny Chen authored
      llvm-svn: 114381
      958da040
    • Johnny Chen's avatar
      Added the capability to source the configFile specified via the "-c" option in · 209cdbef
      Johnny Chen authored
      order to customize the running of the test suite.  For the time being, the
      supported customizations are:
      
      o redirecting stdout and/or stderr
      o specifying a list of compilers to build the test programs
      o specifying a list of architectures to build the test programs for
      
      Also checked into the examples/test directory some example files which
      demonstrate the usage for the above customizations.
      
      $ ./dotest.py -v -c ~/.lldbtest-config persistent_variables
      $ cat ~/.lldbtest-config
      sys.stderr = open("/tmp/lldbtest-stderr", "w")
      sys.stdout = open("/tmp/lldbtest-stdout", "w")
      compilers = ["gcc", "llvm-gcc"]
      archs = ["x86_64", "i386"]
      $ cat /tmp/lldbtest-stderr
      ----------------------------------------------------------------------
      Collected 1 test
      
      
      Configuration: arch=x86_64 compiler=gcc
      test_persistent_variables (TestPersistentVariables.PersistentVariablesTestCase)
      Test that lldb persistent variables works correctly. ... ok
      
      ----------------------------------------------------------------------
      Ran 1 test in 1.397s
      
      OK
      
      Configuration: arch=x86_64 compiler=llvm-gcc
      test_persistent_variables (TestPersistentVariables.PersistentVariablesTestCase)
      Test that lldb persistent variables works correctly. ... ok
      
      ----------------------------------------------------------------------
      Ran 1 test in 1.282s
      
      OK
      
      Configuration: arch=i386 compiler=gcc
      test_persistent_variables (TestPersistentVariables.PersistentVariablesTestCase)
      Test that lldb persistent variables works correctly. ... ok
      
      ----------------------------------------------------------------------
      Ran 1 test in 1.297s
      
      OK
      
      Configuration: arch=i386 compiler=llvm-gcc
      test_persistent_variables (TestPersistentVariables.PersistentVariablesTestCase)
      Test that lldb persistent variables works correctly. ... ok
      
      ----------------------------------------------------------------------
      Ran 1 test in 1.269s
      
      OK
      $ cat /tmp/lldbtest-stdout
      $ 
      
      llvm-svn: 114380
      209cdbef
    • Johnny Chen's avatar
      Changed this breakpoint callback function to print to the stdout instead of · dba0a0fb
      Johnny Chen authored
      stderr so as not to disrupt the information emitted by the unittest framework.
      
      llvm-svn: 114377
      dba0a0fb
  2. Sep 20, 2010
  3. Sep 19, 2010
  4. Sep 18, 2010
  5. Sep 17, 2010
  6. Sep 16, 2010
  7. Sep 15, 2010
  8. Sep 14, 2010
    • Johnny Chen's avatar
      Fixed an error in Debugger::UpdateExecutionContext() where an invalid index ID 0 · c13ee52c
      Johnny Chen authored
      was used to set the selected thread if none was selected.  Use a more robust
      API to accomplish the task.
      
      Also fixed an error found, while investigating, in CommandObjectThreadSelect::
      Execute() where the return status was not properly set if successful.
      
      As a result, both the stl step-in test cases with expectedFailure decorators now
      passed.
      
      llvm-svn: 113825
      c13ee52c
  9. Sep 13, 2010
    • Johnny Chen's avatar
      Extend the build mechanism to allow for specifying the compiler used to build · 1394a4b7
      Johnny Chen authored
      the binaries.
      
      If the build* function is passed the compiler argument, for example, 'llvm-gcc',
      it is passed as a make variable to the make command.  Otherwise, we check the
      LLDB_CC environment variable; if it is defined, it is passed as a make variable
      to the make command.
      
      If neither the compiler keyword argument nor the LLDB_CC environment variable is
      specified, no CC make variable is passed to the make command.  The Makefile gets
      to define the default CC being used.
      
      --------------------------------------------------------------------------------
      Example usage follows:
      
      o Via the keyword argument:
      
      class ArrayTypesTestCase(TestBase):
      
          mydir = "array_types"
      
          @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
          def test_with_dsym_and_run_command(self):
              """Test 'frame variable var_name' on some variables with array types."""
              self.buildDsym(compiler='llvm-gcc')
              self.array_types()
      ...
      
      o Via LLDB_CC environment variable:
      
      $ LLDB_CC=llvm-gcc ./dotest.py -v -t array_types
      ----------------------------------------------------------------------
      Collected 4 tests
      
      test_with_dsym_and_python_api (TestArrayTypes.ArrayTypesTestCase)
      Use Python APIs to inspect variables with array types. ... 
      os command: [['/bin/sh', '-c', 'make clean; make MAKE_DSYM=YES CC=llvm-gcc']]
      output: rm -rf "a.out" "a.out.dSYM"  main.o main.d
      llvm-gcc -arch x86_64 -gdwarf-2 -O0 -arch x86_64 -gdwarf-2 -O0  -c -o main.o main.c
      llvm-gcc -arch x86_64 -gdwarf-2 -O0  main.o -o "a.out"
      /usr/bin/dsymutil  -o "a.out.dSYM" "a.out"
      
      ...
      
      llvm-svn: 113781
      1394a4b7
    • Johnny Chen's avatar
      Updated the expected matching strings. · 9440d1c0
      Johnny Chen authored
      llvm-svn: 113756
      9440d1c0
    • Johnny Chen's avatar
      Updated the expected matching strings. · 661f8069
      Johnny Chen authored
      llvm-svn: 113755
      661f8069
    • Johnny Chen's avatar
      Updated the expected matching strings, and added a radar comment. · 8458405a
      Johnny Chen authored
      llvm-svn: 113753
      8458405a
    • Johnny Chen's avatar
      Updated the expected matching strings. · e00234e0
      Johnny Chen authored
      llvm-svn: 113751
      e00234e0
Loading