<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - ERRORs running lldb tests on OSX via dotest.py after TestDisassemble_VST1_64"
href="https://llvm.org/bugs/show_bug.cgi?id=24575">24575</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ERRORs running lldb tests on OSX via dotest.py after TestDisassemble_VST1_64
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@lists.llvm.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dawn+bugzilla@burble.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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
<a href="http://reviews.llvm.org/rL237053">http://reviews.llvm.org/rL237053</a>). 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)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>