Add test coverage to printing of enums and fix display of unsigned values
authorFrederic Riss <friss@apple.com>
Tue, 8 Oct 2019 19:52:01 +0000 (19:52 +0000)
committerFrederic Riss <friss@apple.com>
Tue, 8 Oct 2019 19:52:01 +0000 (19:52 +0000)
commitb56e3a1723e3e390f4b73bb466a3f6cd91458ca2
tree0321e54d42b13eb874e5d6f55dec93a8a1f9a4fd
parent303657a6c6f440f1855f6680c8bb1c8a7b815535
Add test coverage to printing of enums and fix display of unsigned values

TestCPP11EnumTypes.py should have covered all our bases when it comes
to typed enums, but it missed the regression introduced in r374066.
The reason it didn't catch it is somewhat funny: the test was copied
over from another test that recompiled a source file with a different
base type every time, but neither the test source nor the python code
was adapted for testing enums. As a result, this test was just running
8 times the exact same checks on the exact same binary.

This commit fixes the coverage and addresses the issue revealed by
the new tests.

llvm-svn: 374108
lldb/packages/Python/lldbsuite/test/lang/cpp/enum_types/TestCPP11EnumTypes.py
lldb/packages/Python/lldbsuite/test/lang/cpp/enum_types/main.cpp
lldb/source/Symbol/ClangASTContext.cpp