- Oct 22, 2010
-
-
Johnny Chen authored
llvm-svn: 117152
-
Johnny Chen authored
llvm-svn: 117148
-
Johnny Chen authored
llvm-svn: 117140
-
Johnny Chen authored
process which is supposed to create the file. llvm-svn: 117136
-
Johnny Chen authored
llvm-svn: 117129
-
Johnny Chen authored
llvm-svn: 117116
-
Johnny Chen authored
llvm-svn: 117101
-
- Oct 21, 2010
-
-
Johnny Chen authored
llvm-svn: 117071
-
Johnny Chen authored
llvm-svn: 117030
-
Johnny Chen authored
directory used to dump the session info for test failures/errors. Example: /Volumes/data/lldb/svn/trunk/test $ ./dotest.py -s jason -v array_types Session info for test errors or failures will go into directory jason ---------------------------------------------------------------------- Collected 4 tests test_with_dsym_and_python_api (TestArrayTypes.ArrayTypesTestCase) Use Python APIs to inspect variables with array types. ... ok test_with_dsym_and_run_command (TestArrayTypes.ArrayTypesTestCase) Test 'frame variable var_name' on some variables with array types. ... ok test_with_dwarf_and_python_api (TestArrayTypes.ArrayTypesTestCase) Use Python APIs to inspect variables with array types. ... ok test_with_dwarf_and_run_command (TestArrayTypes.ArrayTypesTestCase) Test 'frame variable var_name' on some variables with array types. ... FAIL ====================================================================== FAIL: test_with_dwarf_and_run_command (TestArrayTypes.ArrayTypesTestCase) Test 'frame variable var_name' on some variables with array types. ---------------------------------------------------------------------- Traceback (most recent call last): File "/Volumes/data/lldb/svn/trunk/test/array_types/TestArrayTypes.py", line 27, in test_with_dwarf_and_run_command self.array_types() File "/Volumes/data/lldb/svn/trunk/test/array_types/TestArrayTypes.py", line 62, in array_types 'stop reason = breakpoint']) File "/Volumes/data/lldb/svn/trunk/test/lldbtest.py", line 594, in expect self.runCmd(str, trace = (True if trace else False), check = not error) File "/Volumes/data/lldb/svn/trunk/test/lldbtest.py", line 564, in runCmd msg if msg else CMD_MSG(cmd, True)) AssertionError: False is not True : Command 'thread list' returns successfully ---------------------------------------------------------------------- Ran 4 tests in 3.086s FAILED (failures=1) /Volumes/data/lldb/svn/trunk/test $ ls jason TestArrayTypes.ArrayTypesTestCase.test_with_dwarf_and_run_command.log /Volumes/data/lldb/svn/trunk/test $ head -10 jason/TestArrayTypes.ArrayTypesTestCase.test_with_dwarf_and_run_command.log Session info generated @ Thu Oct 21 09:54:15 2010 os command: [['/bin/sh', '-c', 'make clean; make MAKE_DSYM=NO']] stdout: rm -rf "a.out" "a.out.dSYM" main.o main.d cc -arch x86_64 -gdwarf-2 -O0 -c -o main.o main.c cc -arch x86_64 -gdwarf-2 -O0 main.o -o "a.out" stderr: None retcode: 0 /Volumes/data/lldb/svn/trunk/test $ llvm-svn: 117028
-
Johnny Chen authored
session information files to. This makes the directory name less intimidating. Currently, the directory only gets created if there are failures/errors while running the test suite. llvm-svn: 116982
-
Johnny Chen authored
llvm-svn: 116980
-
- Oct 20, 2010
-
-
Johnny Chen authored
llvm-svn: 116950
-
Johnny Chen authored
llvm-svn: 116941
-
Johnny Chen authored
parent call frame information. And comment out the check for stop reason for the time being. The stop reason disappeared from the "thread backtrace" output for breakpoint stop with condition. llvm-svn: 116939
-
Johnny Chen authored
invocations of them into session object. Remove a debug statement. llvm-svn: 116938
-
Johnny Chen authored
llvm-svn: 116936
-
Johnny Chen authored
to be run during tearDown() to effect the restore action instead of executing it inline during the test method, because the test may already fail and bailout before the inline restore action. Fix test_set_output_path() and pass_run_args_and_env_vars() to use this mechanism. llvm-svn: 116881
-
Johnny Chen authored
llvm-svn: 116874
-
Johnny Chen authored
after running the program. llvm-svn: 116873
-
- Oct 19, 2010
-
-
Johnny Chen authored
llvm-svn: 116850
-
Johnny Chen authored
Add a little helper function SETTING_MSG(setting) to be used from TestSettings.test_set_output_path(). llvm-svn: 116847
-
Johnny Chen authored
llvm-svn: 116844
-
Johnny Chen authored
Change the environment variable name to be more descriptive from LLDB_TIME_WAIT to LLDB_TIME_WAIT_NEXT_LAUNCH. llvm-svn: 116809
-
Johnny Chen authored
to 'expression' to avoid cases where 'expr' has been unaliased. llvm-svn: 116780
-
Johnny Chen authored
now goes into a timestamp-specific directory instead of the previous .session-* files. [17:24:34] johnny:/Volumes/data/lldb/svn/trunk $ ls -l test/2010-10-18-16:56:12.935342 total 48 -rw-r--r-- 1 johnny admin 1695 Oct 18 16:56 TestArrayTypes.ArrayTypesTestCase.test_with_dsym_and_run_command.log -rw-r--r-- 1 johnny admin 1652 Oct 18 16:56 TestArrayTypes.ArrayTypesTestCase.test_with_dwarf_and_run_command.log -rw-r--r-- 1 johnny admin 2967 Oct 18 16:56 TestBreakpointCommand.BreakpointCommandTestCase.test_with_dsym.log -rw-r--r-- 1 johnny admin 1648 Oct 18 16:56 TestClassTypes.ClassTypesTestCase.test_with_dwarf_and_run_command.log -rw-r--r-- 1 johnny admin 1665 Oct 18 16:56 TestClassTypesDisassembly.IterateFrameAndDisassembleTestCase.test_with_dsym_and_python_api.log -rw-r--r-- 1 johnny admin 3873 Oct 18 16:58 TestFloatTypesExpr.FloatTypesTestCase.test_float_types_with_dsym.log [17:24:37] johnny:/Volumes/data/lldb/svn/trunk $ Also, the dumping happens when a test errored in additioned to when it failed. llvm-svn: 116778
-
Johnny Chen authored
llvm-svn: 116775
-
Johnny Chen authored
llvm-svn: 116763
-
- Oct 18, 2010
-
-
Johnny Chen authored
llvm-svn: 116748
-
Johnny Chen authored
Also add a more useful assert message for test_set_output_path(), which is currently decorated with @expectedFailure. llvm-svn: 116718
-
Johnny Chen authored
Also change the utility functions in lldbutil.py, too, to correspond to the StateType representation change. llvm-svn: 116706
-
Johnny Chen authored
llvm-svn: 116705
-
- Oct 16, 2010
-
-
Johnny Chen authored
facilitate session recording. This happens inside an instance method where the test instance is well known. llvm-svn: 116649
-
Johnny Chen authored
pass in a 'sender' arg to the buildDefault(), buildDsym(), buildDwarf(), and cleanup() functions. The sender arg will be the test instance itself (i.e., an instance of TestBase). This is so that the relevant command execution can be recorded in the TestBase.session object if sender is available. The lldbtest.system() command has been modified to pop the 'sender' arg out of the keyword arguments dictionary and use it as the test instance to facilitate seesion recordings. An example is in test/types/AbstractBase.py: def generic_type_tester(self, atoms, quotedDisplay=False): """Test that variables with basic types are displayed correctly.""" # First, capture the golden output emitted by the oracle, i.e., the # series of printf statements. go = system("./a.out", sender=self) There are cases when sender is None. This is the case when the @classmethod is involved in the use of these APIs. When this happens, there is no recording into a session object, but printing on the sys.stderr is still honored if the trace flag is ON. An example is in test/settings/TestSettings.py: @classmethod def classCleanup(cls): system(["/bin/sh", "-c", "rm -f output.txt"]) system(["/bin/sh", "-c", "rm -f stdout.txt"]) llvm-svn: 116648
-
Johnny Chen authored
instead of using hard-coded line number. llvm-svn: 116646
-
rdar://problem/8542091Johnny Chen authored
Also change the expected matching pattern of the 'expr -o -- my' output. llvm-svn: 116645
-
Johnny Chen authored
llvm-svn: 116643
-
- Oct 15, 2010
-
-
Johnny Chen authored
llvm-svn: 116621
-
Johnny Chen authored
'breakpoint delete 1' from 'breakpoint delete'. With 'breakpoint delete', the command interpreter was asking for a confirmation from the user, which there isn't any. llvm-svn: 116610
-
Johnny Chen authored
# rdar://problem/8557478 # test/class_types test failures: runCmd: expr this->m_c_int llvm-svn: 116609
-