Skip to content

Commit 13a1a63

Browse files
authored
[lldb][test] Move std::valarray from libcxx to generic directory (#147704)
This just moves the test from `libcxx` to `generic`. There are currently no `std::valarray` formatters for libstdc++ so I didn't add a test-case for it. Split out from #146740
1 parent 380954b commit 13a1a63

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
CXX_SOURCES := main.cpp
22

3-
USE_LIBCPP := 1
4-
53
include Makefile.rules
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,14 @@
22
Test lldb data formatter subsystem.
33
"""
44

5-
65
import lldb
76
from lldbsuite.test.decorators import *
87
from lldbsuite.test.lldbtest import *
98
from lldbsuite.test import lldbutil
109

1110

12-
class LibcxxChronoDataFormatterTestCase(TestBase):
13-
@add_test_categories(["libc++"])
14-
def test_with_run_command(self):
15-
"""Test that that file and class static variables display correctly."""
16-
self.build()
11+
class StdValarrayDataFormatterTestCase(TestBase):
12+
def do_test(self):
1713
(self.target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
1814
self, "break here", lldb.SBFileSpec("main.cpp", False)
1915
)
@@ -179,3 +175,8 @@ def test_with_run_command(self):
179175
error=True,
180176
substrs=['array index 3 is not valid for "(indirect_array<int>) ia"'],
181177
)
178+
179+
@add_test_categories(["libc++"])
180+
def test_libcxx(self):
181+
self.build(dictionary={"USE_LIBCPP": 1})
182+
self.do_test()

0 commit comments

Comments
 (0)