diff -r 56cd8111b7f7 -r 41300fa6a67c tests/auto/qstringbuilder3/tst_qstringbuilder3.cpp --- a/tests/auto/qstringbuilder3/tst_qstringbuilder3.cpp Tue Jan 26 12:42:25 2010 +0200 +++ b/tests/auto/qstringbuilder3/tst_qstringbuilder3.cpp Tue Feb 02 00:43:10 2010 +0200 @@ -39,4 +39,35 @@ ** ****************************************************************************/ + +// SCENARIO 3 +// this is the "no harm done" version. Only operator% is active, +// with NO_CAST * _not_ defined +#define P % +#undef QT_USE_FAST_OPERATOR_PLUS +#undef QT_USE_FAST_CONCATENATION +#undef QT_NO_CAST_FROM_ASCII +#undef QT_NO_CAST_TO_ASCII + + +#include + +//TESTED_CLASS=QStringBuilder +//TESTED_FILES=qstringbuilder.cpp + +#define LITERAL "some literal" + +void runScenario(); // Defined in stringbuilder.cpp #included below. + +class tst_QStringBuilder3 : public QObject +{ + Q_OBJECT + +private slots: + void scenario() { runScenario(); } +}; + #include "../qstringbuilder1/stringbuilder.cpp" +#include "tst_qstringbuilder3.moc" + +QTEST_APPLESS_MAIN(tst_QStringBuilder3)