Cleanup testcase.

Change-Id: I3db86fa5df4a2747f4c24e0414279dab59098c54
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
Erik Verbruggen
2012-03-13 11:50:56 +01:00
parent 3a6aad8571
commit 3a231e734c

View File

@@ -125,14 +125,17 @@ void tst_Preprocessor::tstst()
"namespace std _GLIBCXX_VISIBILITY(default) {\n"
"}\n"
));
const QByteArray result =
"namespace std \n"
"#gen true\n"
"# 3 \"<stdin>\"\n"
" __attribute__ ((__visibility__ (\"default\")))\n"
"#gen false\n"
"# 3 \"<stdin>\"\n"
" {\n"
"}";
qDebug() << preprocessed;
/*
# define _GLIBCXX_VISIBILITY(V) __attribute__ ((__visibility__ (#V)))
namespace std _GLIBCXX_VISIBILITY(default)
*/
QVERIFY(preprocessed.contains(result));
}
QTEST_APPLESS_MAIN(tst_Preprocessor)