forked from qt-creator/qt-creator
Debugger: fix optional and variant dumper test when using qt5 qmake
Change-Id: Ib9cf05384535eab9d0e39a49d96aa88af48548d2 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -686,8 +686,15 @@ struct Profile
|
||||
struct Cxx11Profile : public Profile
|
||||
{
|
||||
Cxx11Profile()
|
||||
: Profile("greaterThan(QT_MAJOR_VERSION,4): CONFIG += c++11\n"
|
||||
"else: QMAKE_CXXFLAGS += -std=c++0x\n")
|
||||
: Profile("greaterThan(QT_MAJOR_VERSION,4): CONFIG += c++11\n"
|
||||
"else: QMAKE_CXXFLAGS += -std=c++0x\n")
|
||||
{}
|
||||
};
|
||||
|
||||
struct Cxx17Profile : public Profile
|
||||
{
|
||||
Cxx17Profile()
|
||||
: Profile("CONFIG += c++17\n")
|
||||
{}
|
||||
};
|
||||
|
||||
@@ -5596,7 +5603,7 @@ void tst_Dumpers::dumper_data()
|
||||
|
||||
"&o1, &o2, &o3")
|
||||
|
||||
+ Cxx11Profile()
|
||||
+ Cxx17Profile()
|
||||
|
||||
+ Check("o1", "<uninitialized>", "std::optional<bool>")
|
||||
+ Check("o2", "1", "bool") // 1 -> true is done on display
|
||||
@@ -5614,7 +5621,7 @@ void tst_Dumpers::dumper_data()
|
||||
|
||||
"&v1, &v2, &v3")
|
||||
|
||||
+ Cxx11Profile()
|
||||
+ Cxx17Profile()
|
||||
|
||||
+ Check("v1", "0", "bool")
|
||||
+ Check("v2", "1", "bool") // 1 -> true is done on display
|
||||
|
Reference in New Issue
Block a user