summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-01-09 22:45:50 +0100
committerhjk <hjk121@nokiamail.com>2014-01-10 14:34:59 +0100
commit9ce8bcd114df439f5757595f17ff094d8d3c5b7e (patch)
tree2599f12ddf7fe61093bae64d187812c8fc7ce061 /tests
parent6d72796ec04d65bab4d0175427d9b384bd338b19 (diff)
downloadqt-creator-9ce8bcd114df439f5757595f17ff094d8d3c5b7e.tar.gz
Debugger: Simplify display of std::shared_ptr<Foo>
Change-Id: Ie2145903f9ac303d88455cfd609f55240aa76a67 Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/debugger/tst_dumpers.cpp6
-rw-r--r--tests/auto/debugger/tst_simplifytypes.cpp5
2 files changed, 7 insertions, 4 deletions
diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp
index 554df803ac..281cf16ee6 100644
--- a/tests/auto/debugger/tst_dumpers.cpp
+++ b/tests/auto/debugger/tst_dumpers.cpp
@@ -3034,11 +3034,9 @@ void tst_Dumpers::dumper_data()
% Cxx11Profile()
% MacLibCppProfile()
% Check("pi", Pointer("32"), "std::shared_ptr<int>")
- % Check("pi.data", "32", "int").setForGdbOnly()
- % Check("pi.data", "32", "std::shared_ptr<int>::element_type").setForLldbOnly()
+ % Check("pi.data", "32", "int")
% Check("pf", Pointer(), "std::shared_ptr<Foo>")
- % CheckType("pf.data", "Foo").setForGdbOnly()
- % CheckType("pf.data", "std::shared_ptr<Foo>::element_type").setForLldbOnly();
+ % CheckType("pf.data", "Foo");
QTest::newRow("StdSetInt")
<< Data("#include <set>\n",
diff --git a/tests/auto/debugger/tst_simplifytypes.cpp b/tests/auto/debugger/tst_simplifytypes.cpp
index bbf99e1e04..2e8adc1a1a 100644
--- a/tests/auto/debugger/tst_simplifytypes.cpp
+++ b/tests/auto/debugger/tst_simplifytypes.cpp
@@ -60,6 +60,7 @@ const char *description[] =
"msvc_wstringvector",
"boost_shared_ptr",
+ "std_shared_ptr",
};
const char *input[] =
@@ -90,6 +91,8 @@ const char *input[] =
"class std::vector<std::basic_string<unsigned short,std::char_traits<unsigned short>,std::allocator<unsigned short> >,std::allocator<std::basic_string<unsigned short,std::char_traits<unsigned short>,std::allocator<unsigned short> > > >",
// boost
"boost::shared_ptr<int>::element_type",
+// std
+"std::shared_ptr<int>::element_type",
};
const char *output[] =
@@ -118,6 +121,8 @@ const char *output[] =
"std::vector<std::wstring>",
// boost
"int",
+ // std
+ "int",
};
class SimplifyTypesTest : public QObject