Thanks for trying it out Fathi,
I will get the new snapshot.

Actually I like to use Valgrind,
do you know how it has to be integrated?
 Seems like a preprocessor define of some sort.

-David

Fathi Boudra schrieb:
> Fixed in snapshot20090206.
>
> --- a/src/testlib/qtestcase.cpp
> +++ b/src/testlib/qtestcase.cpp
> @@ -1359,6 +1359,9 @@
>      QBenchmarkGlobalData benchmarkData;
>      QBenchmarkGlobalData::current = &benchmarkData;
>
> +#ifdef QTESTLIB_USE_VALGRIND
> +    int callgrindChildExitCode = 0;
> +#endif
>
>  #ifdef Q_WS_MAC
>       bool macNeedsActivate = qApp &&
> qstrcmp(qApp->metaObject()->className(), "QApplicaion");
> @@ -1411,7 +1414,6 @@
>      QTestResult::setCurrentTestObject(metaObject->className());
>      qParseArgs(argc, argv);
>  #ifdef QTESTLIB_USE_VALGRIND
> -    int callgrindChildExitCode;
>      if (QBenchmarkGlobalData::current->mode() ==
> QBenchmarkGlobalData::CallgrindParentProcess) {
>          const QStringList origAppArgs(QCoreApplication::arguments());
>          if (!QBenchmarkValgrindUtils::rerunThroughCallgrind(origAppArgs,
> callgrindChildExitCode))
> @@ -1436,6 +1438,7 @@
>               QTestResult::setCurrentTestFunction(0);
>           }
>
> +        QTestLog::stopLogging();
>  #ifdef QT_MAC_USE_COCOA
>           if (macNeedsActivate) {
>               IOPMAssertionRelease(powerID);
> _______________________________________________
> Qt4-preview-feedback mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback
>
>
>   

_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to