Skip to content

Commit 10dc4e1

Browse files
authored
[lldb][test] Turn std::chrono libcxx test generic (#146873)
Split out from #146740
1 parent b0444b0 commit 10dc4e1

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
CXX_SOURCES := main.cpp
2-
3-
USE_LIBCPP := 1
4-
52
CXXFLAGS_EXTRAS := -std=c++20
3+
64
include Makefile.rules
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,16 @@
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-
@skipIf(compiler="clang", compiler_version=["<", "17.0"])
15-
def test_with_run_command(self):
11+
class StdChronoDataFormatterTestCase(TestBase):
12+
def do_test(self):
1613
"""Test that that file and class static variables display correctly."""
1714
isNotWindowsHost = lldbplatformutil.getHostPlatform() != "windows"
18-
self.build()
1915
(self.target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
2016
self, "break here", lldb.SBFileSpec("main.cpp", False)
2117
)
@@ -433,3 +429,9 @@ def test_with_run_command(self):
433429
"ymwdl_2024_last_tuesday_january = year=2024 month=January weekday=Tuesday index=last"
434430
],
435431
)
432+
433+
@skipIf(compiler="clang", compiler_version=["<", "17.0"])
434+
@add_test_categories(["libc++"])
435+
def test_libcxx(self):
436+
self.build(dictionary={"USE_LIBCPP": 1})
437+
self.do_test()

0 commit comments

Comments
 (0)