diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2012-03-13 11:50:56 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2012-03-13 12:00:43 +0100 |
commit | 3a231e734cc99ea9eca81454c9d68d0e015c8068 (patch) | |
tree | 7a4dac04f693d0e7fdc23ae38a77c5024d1b2beb /tests/auto/cplusplus/preprocessor | |
parent | 3a6aad8571e8ccdecb5514897e11c714d51f652f (diff) | |
download | qt-creator-3a231e734cc99ea9eca81454c9d68d0e015c8068.tar.gz |
Cleanup testcase.
Change-Id: I3db86fa5df4a2747f4c24e0414279dab59098c54
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'tests/auto/cplusplus/preprocessor')
-rw-r--r-- | tests/auto/cplusplus/preprocessor/tst_preprocessor.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/tests/auto/cplusplus/preprocessor/tst_preprocessor.cpp b/tests/auto/cplusplus/preprocessor/tst_preprocessor.cpp index 1add272616..6d08d46f5a 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) |