From bf722c1ab387e8892242dcaacd8afd36d592ebb6 Mon Sep 17 00:00:00 2001 From: Sergio Ahumada Date: Mon, 29 Oct 2012 23:13:05 +0100 Subject: [PATCH] test: Remove QSKIP from tst_QByteArray::literals() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I07b53cd12790d2161964dd09c5a69fe8aff7c90d Reviewed-by: Jędrzej Nowacki --- tests/auto/corelib/tools/qbytearray/tst_qbytearray.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/auto/corelib/tools/qbytearray/tst_qbytearray.cpp b/tests/auto/corelib/tools/qbytearray/tst_qbytearray.cpp index 331024c560..848fdb14a4 100644 --- a/tests/auto/corelib/tools/qbytearray/tst_qbytearray.cpp +++ b/tests/auto/corelib/tools/qbytearray/tst_qbytearray.cpp @@ -147,7 +147,9 @@ private slots: void reserveExtended(); void movablity_data(); void movablity(); +#if defined(Q_COMPILER_LAMBDA) void literals(); +#endif }; static const struct StaticByteArrays { @@ -1878,9 +1880,10 @@ void tst_QByteArray::movablity() QVERIFY(true); } +#if defined(Q_COMPILER_LAMBDA) +// Only tested on c++0x compliant compiler or gcc void tst_QByteArray::literals() { -#if defined(Q_COMPILER_LAMBDA) QByteArray str(QByteArrayLiteral("abcd")); QVERIFY(str.length() == 4); @@ -1897,10 +1900,8 @@ void tst_QByteArray::literals() QVERIFY(str2.constData() == s); QVERIFY(str2.data() != s); -#else - QSKIP("Only tested on c++0x compliant compiler or gcc"); -#endif } +#endif const char globalChar = '1';