Skip to content

Commit ab25e46

Browse files
committed
[lldb][test] Turn std::chrono libcxx test generic
Split out from llvm#146740
1 parent dd495f1 commit ab25e46

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
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 & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@
99
from lldbsuite.test import lldbutil
1010

1111

12-
class LibcxxChronoDataFormatterTestCase(TestBase):
13-
@add_test_categories(["libc++"])
14-
@skipIf(compiler="clang", compiler_version=["<", "17.0"])
15-
def test_with_run_command(self):
12+
class StdChronoDataFormatterTestCase(TestBase):
13+
def do_test(self):
1614
"""Test that that file and class static variables display correctly."""
1715
isNotWindowsHost = lldbplatformutil.getHostPlatform() != "windows"
18-
self.build()
1916
(self.target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
2017
self, "break here", lldb.SBFileSpec("main.cpp", False)
2118
)
@@ -433,3 +430,9 @@ def test_with_run_command(self):
433430
"ymwdl_2024_last_tuesday_january = year=2024 month=January weekday=Tuesday index=last"
434431
],
435432
)
433+
434+
@skipIf(compiler="clang", compiler_version=["<", "17.0"])
435+
@add_test_categories(["libc++"])
436+
def test_libcxx(self):
437+
self.build(dictionary={"USE_LIBCPP" : 1})
438+
self.do_test()

0 commit comments

Comments
 (0)