brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.9 KiB · da68607 Raw
65 lines · plain
1#2# The following examples first show a bad pre/post flight config file followed by a good pre/post config file.3#4 5[11:31:19] johnny:/Volumes/data/lldb/svn/ToT/test $ ./dotest.py -A x86_64 -v -c ../examples/test/.lldb-pre-post-flight.bad  functionalities/watchpoint/hello_watchpoint6config: {'pre_flight': 'I am not callable', 'post_flight': <function post_flight at 0x1071871b8>}7fatal error: pre_flight is not callable, exiting.8[11:32:48] johnny:/Volumes/data/lldb/svn/ToT/test $ ./dotest.py -A x86_64 -v -c ../examples/test/.lldb-pre-post-flight  functionalities/watchpoint/hello_watchpoint9config: {'pre_flight': <function pre_flight at 0x1098541b8>, 'post_flight': <function post_flight at 0x109854230>}10LLDB build dir: /Volumes/data/lldb/svn/ToT/build/Debug11LLDB-13912Path: /Volumes/data/lldb/svn/ToT13URL: https://johnny@llvm.org/svn/llvm-project/lldb/trunk14Repository Root: https://johnny@llvm.org/svn/llvm-project15Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d816Revision: 15475317Node Kind: directory18Schedule: normal19Last Changed Author: gclayton20Last Changed Rev: 15473021Last Changed Date: 2012-04-13 18:42:46 -0700 (Fri, 13 Apr 2012)22 23 24lldb.pre_flight: def pre_flight(test):25    __import__("lldb")26    __import__("lldbtest")27    print "\nRunning pre-flight function:"28    print "for test case:", test29 30lldb.post_flight: def post_flight(test):31    __import__("lldb")32    __import__("lldbtest")33    print "\nRunning post-flight function:"34    print "for test case:", test35 36 37Session logs for test failures/errors/unexpected successes will go into directory '2012-04-16-11_34_08'38Command invoked: python ./dotest.py -A x86_64 -v -c ../examples/test/.lldb-pre-post-flight functionalities/watchpoint/hello_watchpoint39compilers=['clang']40 41Configuration: arch=x86_64 compiler=clang42----------------------------------------------------------------------43Collected 2 tests44 451: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase)46   Test a simple sequence of watchpoint creation and watchpoint hit. ... 47Running pre-flight function:48for test case: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase)49 50Running post-flight function:51for test case: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase)52ok532: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase)54   Test a simple sequence of watchpoint creation and watchpoint hit. ... 55Running pre-flight function:56for test case: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase)57 58Running post-flight function:59for test case: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase)60ok61 62----------------------------------------------------------------------63Ran 2 tests in 1.584s64 65OK