diff --git a/tests/auto/cplusplus/preprocessor/tst_preprocessor.cpp b/tests/auto/cplusplus/preprocessor/tst_preprocessor.cpp
index 1add27261681729e2761f2b50fcad3fc06cd7368..6d08d46f5a16b12dc16ff21e32869ca8cf0ec249 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)