[Bug 36048] New: TestDataFormatterLibcxxVector.py and TestDataFormatterLibcxxVector.py fail with -fmodules

Bug ID 36048
Summary TestDataFormatterLibcxxVector.py and TestDataFormatterLibcxxVector.py fail with -fmodules
Product lldb
Version unspecified
Hardware PC
OS All
Status NEW
Severity enhancement
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter vsk@apple.com
CC llvm-bugs@lists.llvm.org

These tests were not actually ever building with -fmodules because in
Makefile.rules, we strip out -fmodules for c++11 tests. If we stop doing that,
we see:

1: test_with_run_command_dsym
(TestDataFormatterLibcxxVector.LibcxxVectorDataFormatterTestCase)
   Test that that file and class static variables display correctly. ... ok
2: test_with_run_command_dwarf
(TestDataFormatterLibcxxVector.LibcxxVectorDataFormatterTestCase)
   Test that that file and class static variables display correctly. ... ok
3: test_with_run_command_gmodules
(TestDataFormatterLibcxxVector.LibcxxVectorDataFormatterTestCase)
   Test that that file and class static variables display correctly. ...
FAILURE

The symptoms are that the data formatters print the wrong summaries for the
vector/list containers.

Adrian Prantl changed bug 36048

What Removed Added
Assignee lldb-dev@lists.llvm.org aprantl@apple.com
Status NEW ASSIGNED

Comment # 3 on bug 36048 from Adrian Prantl

Not sure, I'll have to investigate. Chances are 50/50 that this is a bug in
clang or in LLDB. The last -gmodules-related bug I fixed turned out to be a bug
in both :-)