From 1fe85174eb019bfd525d4a898cd1ce710314c4dc Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Thu, 2 Feb 2012 19:50:47 +0100
Subject: [PATCH] debugger: better manual test for std::unique_ptr dumper

Change-Id: I37a2b5ae4089931bd9f9edea8c584024c94c498d
Reviewed-by: hjk <qthjk@ovi.com>
---
 tests/manual/debugger/simple/simple_test_app.cpp | 4 ++--
 tests/manual/debugger/simple/simple_test_app.pro | 6 +++++-
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/tests/manual/debugger/simple/simple_test_app.cpp b/tests/manual/debugger/simple/simple_test_app.cpp
index b0fb74f322d..5e031ac88bf 100644
--- a/tests/manual/debugger/simple/simple_test_app.cpp
+++ b/tests/manual/debugger/simple/simple_test_app.cpp
@@ -2653,7 +2653,7 @@ namespace stdptr {
     void testStdUniquePtr()
     {
         #ifdef USE_CXX11
-        std::unique_ptr<int> p(new 32);
+        std::unique_ptr<int> p(new int(32));
         BREAK_HERE;
         // Check p 32 std::unique_ptr<int>.
         // Continue.
@@ -5919,7 +5919,7 @@ int main(int argc, char *argv[])
     stdstream::testStdStream();
     stdstring::testStdString();
     stdvector::testStdVector();
-    stdptr::testStdPointer();
+    stdptr::testStdPtr();
 
     qbytearray::testQByteArray();
     qdatetime::testDateTime();
diff --git a/tests/manual/debugger/simple/simple_test_app.pro b/tests/manual/debugger/simple/simple_test_app.pro
index bde934714d4..614c6525ffe 100644
--- a/tests/manual/debugger/simple/simple_test_app.pro
+++ b/tests/manual/debugger/simple/simple_test_app.pro
@@ -25,7 +25,11 @@ maemo5 {
 exists($$QMAKE_INCDIR_QT/QtCore/private/qobject_p.h):DEFINES += USE_PRIVATE
 exists(/usr/include/boost/optional.hpp): DEFINES += USE_BOOST
 exists(/usr/include/eigen2/Eigen/Core): DEFINES += USE_EIGEN
-false: DEFINES += USE_CXX11
+
+*g++* {
+    DEFINES += USE_CXX11
+    QMAKE_CXXFLAGS += -std=c++0x
+}
 
 # Use for semi-automated testing
 #DEFINES += USE_AUTORUN=1
-- 
GitLab