[lldb-dev] [Bug 24575] New: ERRORs running lldb tests on OSX via dotest.py after TestDisassemble_VST1_64

via lldb-dev lldb-dev at lists.llvm.org
Tue Aug 25 11:57:17 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24575

            Bug ID: 24575
           Summary: ERRORs running lldb tests on OSX via dotest.py after
                    TestDisassemble_VST1_64
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: dawn+bugzilla at burble.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Running lldb tests on OSX via dotest.py gets ERRORs on all tests following test
    test_disassemble_invalid_vst_1_64_raw_data
(TestDisassemble_VST1_64.Disassemble_VST1_64)
which creates a target via
    target = self.dbg.CreateTargetWithFileAndTargetTriple ("", "thumbv7")

This started after commit svn r237053 (see comments in
http://reviews.llvm.org/rL237053).  Before this commit, all tests run:
    Collected 1324 tests

    1: test_sb_api_directory (TestPublicAPIHeaders.SBDirCheckerCase)
    [...]
    850: test_disassemble_invalid_vst_1_64_raw_data
(TestDisassemble_VST1_64.Disassemble_VST1_64)
        Test disassembling invalid vst1.64 raw bytes with the API. ... ok
    851: test_disassemble_raw_data
(TestDisassembleRawData.DisassembleRawDataTestCase)
        Test disassembling raw bytes with the API. ... ok
    [...]
    ----------------------------------------------------------------------
    Ran 1324 tests in 4017.285s

    FAILED (failures=2, errors=3, skipped=118, expected failures=61, unexpected
successes=28)

After this commit, all tests folloing
test_disassemble_invalid_vst_1_64_raw_data get ERRORs:
    Collected 1324 tests

    1: test_sb_api_directory (TestPublicAPIHeaders.SBDirCheckerCase)
        Test the SB API directory and make sure there's no unwanted stuff. ...
skipped 'skip because LLDB.h header not found'
    [...]
    850: test_disassemble_invalid_vst_1_64_raw_data
(TestDisassemble_VST1_64.Disassemble_VST1_64)
        Test disassembling invalid vst1.64 raw bytes with the API. ... ok
    ERROR
    ERROR
    ERROR
    [...]
    ---------------------------------------------------------------------
    Ran 850 tests in 3052.121s

    FAILED (failures=2, errors=86, skipped=40, expected failures=57, unexpected
successes=25)

To reproduce in a narrowed case, build lldb on OSX (cmake and ninja were used
here), set LLDB_EXEC to point to lldb, cd to lldb/test, and run:
    ./dotest.py -v -t --executable $LLDB_EXEC python_api/disassemble-raw-data
You'll see the ERROR on the second test:
    ERROR

    ======================================================================
    ERROR: setUpClass (TestDisassembleRawData.DisassembleRawDataTestCase)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
    File "/Users/dawn/llvm_delphi/tools/lldb/test/lldbtest.py", line 1167, in
setUpClass
        if platformIsDarwin():
    File "/Users/dawn/llvm_delphi/tools/lldb/test/lldbtest.py", line 916, in
platformIsDarwin
        return getPlatform() in getDarwinOSTriples()
    File "/Users/dawn/llvm_delphi/tools/lldb/test/lldbtest.py", line 895, in
getPlatform
        platform = lldb.DBG.GetSelectedPlatform().GetTriple().split('-')[2]
    AttributeError: 'NoneType' object has no attribute 'split'

    ----------------------------------------------------------------------
    Ran 1 test in 0.005s

    RESULT: FAILED (1 passes, 0 failures, 1 errors, 0 skipped, 0 expected
failures, 0 unexpected successes)

Running each test separately both pass:
    ./dotest.py -v -t --executable $LLDB_EXEC -f
Disassemble_VST1_64.test_disassemble_invalid_vst_1_64_raw_data
    RESULT: PASSED (1 passes, 0 failures, 0 errors, 0 skipped, 0 expected
failures, 0 unexpected successes)
    ./dotest.py -v -t --executable $LLDB_EXEC -f
DisassembleRawDataTestCase.test_disassemble_raw_data
    RESULT: PASSED (1 passes, 0 failures, 0 errors, 0 skipped, 0 expected
failures, 0 unexpected successes)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150825/71b57903/attachment.html>


More information about the lldb-dev mailing list