[Lldb-commits] [lldb] [lldb] Standardize TestVectorOfEnums.py as a C++ data formatter test (PR #189757)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 31 14:46:09 PDT 2026
https://github.com/bulbazord created https://github.com/llvm/llvm-project/pull/189757
This is explicitly marked as a libc++ test and functionally tests the formatter for a vector of enums. I put it in the generic directory because there's no reason this couldn't work for other c++ stdlibs.
Additionally, this should be using the custom libc++ like the other tests.
>From fecd57ceb3f927e81685252b371af64829515173 Mon Sep 17 00:00:00 2001
From: Alex Langford <alangford at apple.com>
Date: Tue, 31 Mar 2026 14:20:23 -0700
Subject: [PATCH] [lldb] Standardize TestVectorOfEnums.py as a C++ data
formatter test
This is explicitly marked as a libc++ test and functionally tests the
formatter for a vector of enums. I put it in the generic directory
because there's no reason this couldn't work for other c++ stdlibs.
Additionally, this should be using the custom libc++ like the other
tests.
---
.../data-formatter-stl/generic}/vector_of_enums/Makefile | 0
.../generic}/vector_of_enums/TestVectorOfEnums.py | 3 +--
.../data-formatter-stl/generic}/vector_of_enums/main.cpp | 0
3 files changed, 1 insertion(+), 2 deletions(-)
rename lldb/test/API/{commands/expression => functionalities/data-formatter/data-formatter-stl/generic}/vector_of_enums/Makefile (100%)
rename lldb/test/API/{commands/expression => functionalities/data-formatter/data-formatter-stl/generic}/vector_of_enums/TestVectorOfEnums.py (92%)
rename lldb/test/API/{commands/expression => functionalities/data-formatter/data-formatter-stl/generic}/vector_of_enums/main.cpp (100%)
diff --git a/lldb/test/API/commands/expression/vector_of_enums/Makefile b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/vector_of_enums/Makefile
similarity index 100%
rename from lldb/test/API/commands/expression/vector_of_enums/Makefile
rename to lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/vector_of_enums/Makefile
diff --git a/lldb/test/API/commands/expression/vector_of_enums/TestVectorOfEnums.py b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/vector_of_enums/TestVectorOfEnums.py
similarity index 92%
rename from lldb/test/API/commands/expression/vector_of_enums/TestVectorOfEnums.py
rename to lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/vector_of_enums/TestVectorOfEnums.py
index 8580cadac3e25..0d885a555652c 100644
--- a/lldb/test/API/commands/expression/vector_of_enums/TestVectorOfEnums.py
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/vector_of_enums/TestVectorOfEnums.py
@@ -3,7 +3,6 @@
correctly, in this case specifically std::vector of enums.
"""
-
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
@@ -13,7 +12,7 @@
class TestVectorOfEnums(TestBase):
@add_test_categories(["libc++"])
def test_vector_of_enums(self):
- self.build()
+ self.build(dictionary={"USE_LIBCPP": 1})
lldbutil.run_to_source_breakpoint(
self, "// break here", lldb.SBFileSpec("main.cpp", False)
diff --git a/lldb/test/API/commands/expression/vector_of_enums/main.cpp b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/vector_of_enums/main.cpp
similarity index 100%
rename from lldb/test/API/commands/expression/vector_of_enums/main.cpp
rename to lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/vector_of_enums/main.cpp
More information about the lldb-commits
mailing list