From 3a231e734cc99ea9eca81454c9d68d0e015c8068 Mon Sep 17 00:00:00 2001
From: Erik Verbruggen <erik.verbruggen@nokia.com>
Date: Tue, 13 Mar 2012 11:50:56 +0100
Subject: [PATCH] Cleanup testcase.

Change-Id: I3db86fa5df4a2747f4c24e0414279dab59098c54
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
---
 .../preprocessor/tst_preprocessor.cpp         | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/tests/auto/cplusplus/preprocessor/tst_preprocessor.cpp b/tests/auto/cplusplus/preprocessor/tst_preprocessor.cpp
index 1add2726168..6d08d46f5a1 100644
--- a/tests/auto/cplusplus/preprocessor/tst_preprocessor.cpp
+++ b/tests/auto/cplusplus/preprocessor/tst_preprocessor.cpp
@@ -125,14 +125,17 @@ void tst_Preprocessor::tstst()
                            "namespace std _GLIBCXX_VISIBILITY(default) {\n"
                            "}\n"
                            ));
-
-    qDebug() << preprocessed;
-
-    /*
-# define _GLIBCXX_VISIBILITY(V) __attribute__ ((__visibility__ (#V)))
-namespace std _GLIBCXX_VISIBILITY(default)
-
-     */
+    const QByteArray result =
+            "namespace std \n"
+            "#gen true\n"
+            "# 3 \"<stdin>\"\n"
+            "              __attribute__ ((__visibility__ (\"default\")))\n"
+            "#gen false\n"
+            "# 3 \"<stdin>\"\n"
+            "                                           {\n"
+            "}";
+
+    QVERIFY(preprocessed.contains(result));
 }
 
 QTEST_APPLESS_MAIN(tst_Preprocessor)
-- 
GitLab