Skip to content

LLDB :: SymbolFile/NativePDB/globals-fundamental.cpp fails on 8.0 branch w/ LLDB_DISABLE_PYTHON #41280

@llvmbot

Description

@llvmbot
Bugzilla Link 41935
Resolution FIXED
Resolved on Jun 05, 2019 19:48
Version 8.0
OS Linux
Depends On llvm/llvm-bugzilla-archive#41934
Blocks #40566
Attachments 0001-lldb-lit-Skip-globals-fundamental-test-when-Python-i.patch
Reporter LLVM Bugzilla Contributor
CC @JDevlieghere,@labath,@tstellar
Fixed by commit(s) r362670

Extended Description

When LLDB_DISABLE_PYTHON is set to 1, the following test fails (in addition to tests for which backports I've requested already).

It's been fixed in trunk already via r356171. However, that's a potentially intrusive change, so I think it's better to just skip the test in 8.x. I'm attaching a patch to do so (it depends on the patches whose backports I've already requested).

FAIL: LLDB :: SymbolFile/NativePDB/globals-fundamental.cpp (19 of 19)
******************** TEST 'LLDB :: SymbolFile/NativePDB/globals-fundamental.cpp' FAILED ********************
Script:

: 'RUN: at line 5'; '/usr/bin/python2.7' /var/tmp/portage/dev-util/lldb-8.0.9999/work/lldb-8.0.9999/lit/helper/build.py --compiler=any --arch=64 --tools-dir=/var/tmp/portage/dev-util/lldb-8.0.9999/work/lldb-8.0.9999_build/./bin --compiler=clang-cl --nodefaultlib -o /var/tmp/portage/dev-util/lldb-8.0.9999/work/lldb-8.0.9999_build/lit/SymbolFile/NativePDB/Output/globals-fundamental.cpp.tmp.exe -- /var/tmp/portage/dev-util/lldb-8.0.9999/work/lldb-8.0.9999/lit/SymbolFile/NativePDB/globals-fundamental.cpp
: 'RUN: at line 6'; env LLDB_USE_NATIVE_PDB_READER=1 /var/tmp/portage/dev-util/lldb-8.0.9999/work/lldb-8.0.9999_build/bin/lldb -S /var/tmp/portage/dev-util/lldb-8.0.9999/work/lldb-8.0.9999/lit/lit-lldb-init -f /var/tmp/portage/dev-util/lldb-8.0.9999/work/lldb-8.0.9999_build/lit/SymbolFile/NativePDB/Output/globals-fundamental.cpp.tmp.exe -s /var/tmp/portage/dev-util/lldb-8.0.9999/work/lldb-8.0.9999/lit/SymbolFile/NativePDB/Inputs/globals-fundamental.lldbinit | /usr/lib64/llvm/8/bin/FileCheck /var/tmp/portage/dev-util/lldb-8.0.9999/work/lldb-8.0.9999/lit/SymbolFile/NativePDB/globals-fundamental.cpp

Exit Code: 1

Command Output (stdout):

Cleaning globals-fundamental.ilk
Cleaning globals-fundamental.cpp.tmp.exe-globals-fundamental.obj
Cleaning globals-fundamental.cpp.tmp.pdb
Cleaning globals-fundamental.cpp.tmp.exe

compiling globals-fundamental.cpp -> globals-fundamental.cpp.tmp.exe-globals-fundamental.obj
STDOUT:

linking globals-fundamental.cpp.tmp.exe-globals-fundamental.obj -> globals-fundamental.cpp.tmp.exe
STDOUT:

--
Command Output (stderr):

  • : 'RUN: at line 5'
  • /usr/bin/python2.7 /var/tmp/portage/dev-util/lldb-8.0.9999/work/lldb-8.0.9999/lit/helper/build.py --compiler=any --arch=64 --tools-dir=/var/tmp/portage/dev-util/lldb-8.0.9999/work/lldb-8.0.9999_build/./bin --compiler=clang-cl --nodefaultlib -o /var/tmp/portage/dev-util/lldb-8.0.9999/work/lldb-8.0.9999_build/lit/SymbolFile/NativePDB/Output/globals-fundamental.cpp.tmp.exe -- /var/tmp/portage/dev-util/lldb-8.0.9999/work/lldb-8.0.9999/lit/SymbolFile/NativePDB/globals-fundamental.cpp
  • : 'RUN: at line 6'
  • env LLDB_USE_NATIVE_PDB_READER=1 /var/tmp/portage/dev-util/lldb-8.0.9999/work/lldb-8.0.9999_build/bin/lldb -S /var/tmp/portage/dev-util/lldb-8.0.9999/work/lldb-8.0.9999/lit/lit-lldb-init -f /var/tmp/portage/dev-util/lldb-8.0.9999/work/lldb-8.0.9999_build/lit/SymbolFile/NativePDB/Output/globals-fundamental.cpp.tmp.exe -s /var/tmp/portage/dev-util/lldb-8.0.9999/work/lldb-8.0.9999/lit/SymbolFile/NativePDB/Inputs/globals-fundamental.lldbinit
  • /usr/lib64/llvm/8/bin/FileCheck /var/tmp/portage/dev-util/lldb-8.0.9999/work/lldb-8.0.9999/lit/SymbolFile/NativePDB/globals-fundamental.cpp
    /var/tmp/portage/dev-util/lldb-8.0.9999/work/lldb-8.0.9999/lit/SymbolFile/NativePDB/globals-fundamental.cpp:43:16: error: CHECK-NEXT: expected string not found in input
    // CHECK-NEXT: (wchar_t) WC1 = L'1'
    ^
    :31:1: note: scanning from here
    (wchar_t) WC1 = 1\0
    ^

--

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilla

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions