aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/debugger
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-09-17 14:26:50 +0200
committerhjk <hjk121@nokiamail.com>2014-09-17 14:42:34 +0200
commit22a4f49153a12940712b633f5ecbac96e427098b (patch)
tree36fda504b6f5e72d5ba234cda06a7b3cf9f33a31 /tests/manual/debugger
parent951a5d428ce3a435f6d9bdaf582ce851846ac995 (diff)
Debugger: Require Qt 5.2 for manual test, too
... by removing fall-back code. Change-Id: I71f3ece335ef660e62e93dcbbeff18dc5b0c46f0 Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'tests/manual/debugger')
-rw-r--r--tests/manual/debugger/simple/simple_test_app.cpp42
-rw-r--r--tests/manual/debugger/simple/simple_test_app.pro7
2 files changed, 4 insertions, 45 deletions
diff --git a/tests/manual/debugger/simple/simple_test_app.cpp b/tests/manual/debugger/simple/simple_test_app.cpp
index dfda50eb324..7416d526025 100644
--- a/tests/manual/debugger/simple/simple_test_app.cpp
+++ b/tests/manual/debugger/simple/simple_test_app.cpp
@@ -128,12 +128,6 @@
#define USE_WEBKITLIB 0
#endif
-#if QT_VERSION >= 0x040500
-#define USE_SHARED_POINTER 1
-#else
-#define USE_SHARED_POINTER 0
-#endif
-
#if QT_VERSION >= 0x050200
#define USE_TIMEZONE 1
#else
@@ -142,7 +136,7 @@
void dummyStatement(...) {}
-#if USE_CXX11 && defined(__GNUC__) && defined(__STRICT_ANSI__)
+#if defined(__GNUC__) && defined(__STRICT_ANSI__)
#undef __STRICT_ANSI__ // working around compile error with MinGW
#endif
@@ -161,14 +155,12 @@ void dummyStatement(...) {}
#include <QString>
#include <QStringList>
#include <QSettings>
+#include <QSharedPointer>
#include <QStack>
#include <QThread>
#include <QVariant>
#include <QVector>
#include <QUrl>
-#if USE_SHARED_POINTER
-#include <QSharedPointer>
-#endif
#if USE_GUILIB
#include <QAction>
@@ -182,10 +174,8 @@ void dummyStatement(...) {}
#include <QStandardItemModel>
#include <QTextCursor>
#include <QTextDocument>
-#if USE_TIMEZONE
#include <QTimeZone>
#endif
-#endif
#if USE_SCRIPTLIB
#include <QScriptEngine>
@@ -201,10 +191,8 @@ void dummyStatement(...) {}
#include <QHostAddress>
#include <QNetworkRequest>
-#if USE_CXX11
#include <array>
#include <unordered_map>
-#endif
#include <complex>
#include <deque>
#include <iostream>
@@ -729,12 +717,10 @@ namespace qdatetime {
void testQTimeZone()
{
-#if USE_TIMEZONE
QTimeZone zz;
QTimeZone tz("UTC+05:00");
BREAK_HERE;
dummyStatement(&zz, &tz);
-#endif
}
void testQDate()
@@ -2468,7 +2454,6 @@ namespace qset {
namespace qsharedpointer {
- #if USE_SHARED_POINTER
class EmployeeData : public QSharedData
{
@@ -2563,11 +2548,6 @@ namespace qsharedpointer {
testQSharedPointer5();
}
- #else
-
- void testQSharedPointer() {}
-
- #endif
} // namespace qsharedpointer
@@ -2613,7 +2593,6 @@ namespace stdarray {
void testStdArray()
{
- #if USE_CXX11
std::array<int, 4> a = { { 1, 2, 3, 4} };
std::array<QString, 4> b = { { "1", "2", "3", "4"} };
BREAK_HERE;
@@ -2622,7 +2601,6 @@ namespace stdarray {
// Check a <4 items> std::array<QString, 4u>.
// Continue.
dummyStatement(&a, &b);
- #endif
}
} // namespace stdcomplex
@@ -2858,7 +2836,6 @@ namespace stdlist {
namespace stdunorderedmap {
-#if USE_CXX11
void testStdUnorderedMapStringFoo()
{
// This is not supposed to work with the compiled dumpers.
@@ -3051,11 +3028,9 @@ namespace stdunorderedmap {
// Continue.
dummyStatement(&map);
}
-#endif
void testStdUnorderedMap()
{
-#if USE_CXX11
testStdUnorderedMapStringFoo();
testStdUnorderedMapCharStarFoo();
testStdUnorderedMapUIntUInt();
@@ -3066,7 +3041,6 @@ namespace stdunorderedmap {
testStdUnorderedMapStringFloat();
testStdUnorderedMapIntString();
testStdUnorderedMapStringPointer();
-#endif
}
} // namespace stdunorderedmap
@@ -3311,46 +3285,38 @@ namespace stdptr {
void testStdUniquePtrInt()
{
- #ifdef USE_CXX11
std::unique_ptr<int> p(new int(32));
BREAK_HERE;
// Check p 32 std::unique_ptr<int, std::default_delete<int> >.
// Continue.
dummyStatement(&p);
- #endif
}
void testStdUniquePtrFoo()
{
- #ifdef USE_CXX11
std::unique_ptr<Foo> p(new Foo);
BREAK_HERE;
// Check p 32 std::unique_ptr<Foo, std::default_delete<Foo> >.
// Continue.
dummyStatement(&p);
- #endif
}
void testStdSharedPtrInt()
{
- #ifdef USE_CXX11
std::shared_ptr<int> p(new int(32));
BREAK_HERE;
// Check p 32 std::shared_ptr<int, std::default_delete<int> >.
// Continue.
dummyStatement(&p);
- #endif
}
void testStdSharedPtrFoo()
{
- #ifdef USE_CXX11
std::shared_ptr<Foo> p(new Foo);
BREAK_HERE;
// Check p 32 std::shared_ptr<Foo, std::default_delete<int> >.
// Continue.
dummyStatement(&p);
- #endif
}
void testStdPtr()
@@ -3368,7 +3334,6 @@ namespace lambda {
void testLambda()
{
-#ifdef USE_CXX11
std::string x;
auto f = [&] () -> const std::string & {
int z = x.size();
@@ -3378,7 +3343,6 @@ namespace lambda {
auto c = f();
BREAK_HERE;
dummyStatement(&x, &f, &c);
-#endif
}
} // namespace lambda
@@ -5557,7 +5521,6 @@ namespace basic {
void testLongEvaluation1()
{
-#if USE_TIMEZONE
QTimeZone tz("UTC+05:00");
QDateTime time = QDateTime::currentDateTime();
const int N = 10000;
@@ -5578,7 +5541,6 @@ namespace basic {
// Continue.
// Note: This is expected to _not_ take up to a minute.
dummyStatement(&bigv);
-#endif
}
void testLongEvaluation2()
diff --git a/tests/manual/debugger/simple/simple_test_app.pro b/tests/manual/debugger/simple/simple_test_app.pro
index a4120e034a0..9c07e8bea2e 100644
--- a/tests/manual/debugger/simple/simple_test_app.pro
+++ b/tests/manual/debugger/simple/simple_test_app.pro
@@ -10,6 +10,8 @@ QT += network
QT += script
QT += xml
+CONFIG += c++11
+
contains(QT_CONFIG, webkit)|!isEmpty(QT.webkit.name) {
QT += webkit
greaterThan(QT_MAJOR_VERSION, 4) {
@@ -37,11 +39,6 @@ maemo5 {
INSTALLS += target
}
-*g++* {
- DEFINES += USE_CXX11
- QMAKE_CXXFLAGS += -std=c++0x
-}
-
exists($$QMAKE_INCDIR_QT/QtCore/private/qobject_p.h):DEFINES += HAS_PRIVATE
exists(/usr/include/boost/optional.hpp): DEFINES += HAS_BOOST