<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - TestVSCode_module: test_compile_units fails due to extra units on FreeBSD"
   href="https://bugs.llvm.org/show_bug.cgi?id=49418">49418</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>TestVSCode_module: test_compile_units fails due to extra units on FreeBSD
          </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>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </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>mgorny@gentoo.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jdevlieghere@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>It seems that it gets some system files on the list too on FreeBSD.  If I add a
print-debug, I get:

[{'compileUnitPath': '/usr/src/lib/csu/aarch64/crt1_c.c'}, {'compileUnitPath':
'/usr/src/lib/csu/aarch64/crt1_s.S'}, {'compileUnitPath':
'/usr/src/lib/csu/aarch64/crti.S'}, {'compileUnitPath':
'/usr/src/lib/csu/common/crtbegin.c'}, {'compileUnitPath':
'/home/mgorny/llvm-project/lldb/test/API/tools/lldb-vscode/module/main.cpp'},
{'compileUnitPath': '/usr/src/lib/csu/common/crtend.c'}, {'compileUnitPath':
'/usr/src/lib/csu/aarch64/crtn.S'}]



******************** TEST 'lldb-api ::
tools/lldb-vscode/module/TestVSCode_module.py' FAILED ********************
Script:
--
/usr/local/bin/python3.7 /home/mgorny/llvm-project/lldb/test/API/dotest.py -u
CXXFLAGS -u CFLAGS --env ARCHIVER=/usr/bin/ar --env OBJCOPY=/usr/bin/objcopy
--env LLVM_LIBS_DIR=/home/mgorny/llvm-project/build.arm64/./lib --arch aarch64
--build-dir /home/mgorny/llvm-project/build.arm64/lldb-test-build.noindex
--lldb-module-cache-dir
/home/mgorny/llvm-project/build.arm64/lldb-test-build.noindex/module-cache-lldb/lldb-api
--clang-module-cache-dir
/home/mgorny/llvm-project/build.arm64/lldb-test-build.noindex/module-cache-clang/lldb-api
--executable /home/mgorny/llvm-project/build.arm64/./bin/lldb --compiler
/home/mgorny/llvm-project/build.arm64/./bin/clang --dsymutil
/home/mgorny/llvm-project/build.arm64/./bin/dsymutil --llvm-tools-dir
/home/mgorny/llvm-project/build.arm64/./bin --lldb-libs-dir
/home/mgorny/llvm-project/build.arm64/./lib
/home/mgorny/llvm-project/lldb/test/API/tools/lldb-vscode/module -p
TestVSCode_module.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 13.0.0
Libc++ tests will not be run because: Don't know how to build with libc++ on
freebsd
libstdcxx tests will not be run because: Don't know how to build with libstdcxx
on freebsd
Skipping following debug info categories: ['dwo', 'dsym', 'gmodules']
objc tests will be skipped because of unsupported platform
description: breakpoint 1.1
description: breakpoint 1.1

--
Command Output (stderr):
--
FAIL: LLDB (/home/mgorny/llvm-project/build.arm64/bin/clang-aarch64) ::
test_compile_units (TestVSCode_module.TestVSCode_module)
PASS: LLDB (/home/mgorny/llvm-project/build.arm64/bin/clang-aarch64) ::
test_modules (TestVSCode_module.TestVSCode_module)
UNSUPPORTED: LLDB (/home/mgorny/llvm-project/build.arm64/bin/clang-aarch64) ::
test_modules_dsym (TestVSCode_module.TestVSCode_module) (requires one of
macosx, darwin, ios, tvos, watchos, bridgeos, iphonesimulator, watchsimulator,
appletvsimulator) 
======================================================================
FAIL: test_compile_units (TestVSCode_module.TestVSCode_module)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/mgorny/llvm-project/lldb/test/API/tools/lldb-vscode/module/TestVSCode_module.py",
line 94, in test_compile_units
    'Only one source file should exist')
AssertionError: 7 != 1 : Only one source file should exist
Config=aarch64-/home/mgorny/llvm-project/build.arm64/bin/clang
----------------------------------------------------------------------
Ran 3 tests in 71.177s

RESULT: FAILED (1 passes, 1 failures, 0 errors, 1 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>