Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
CXX_SOURCES := main.cpp

USE_LIBCPP := 1
include Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
Test lldb data formatter subsystem.
"""


import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil


class TestDataFormatterLibcxxQueue(TestBase):
class TestDataFormatterStdQueue(TestBase):
def setUp(self):
TestBase.setUp(self)
self.namespace = "std"
Expand All @@ -30,9 +29,9 @@ def check_variable(self, name):
bugnumber="llvm.org/pr36109", debug_info="gmodules", triple=".*-android"
)
@add_test_categories(["libc++"])
def test(self):
def test_libcxx(self):
"""Test that std::queue is displayed correctly"""
self.build()
self.build(dictionary={"USE_LIBCPP": 1})
lldbutil.run_to_source_breakpoint(
self, "// break here", lldb.SBFileSpec("main.cpp", False)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#include <vector>

int main() {
std::queue<int> q1{{1,2,3,4,5}};
std::queue<int, std::vector<int>> q2{{1,2,3,4,5}};
std::queue<int> q1{{1, 2, 3, 4, 5}};
std::queue<int, std::vector<int>> q2{{1, 2, 3, 4, 5}};
int ret = q1.size() + q2.size(); // break here
return ret;
}
Loading