From 7b37d1bc4f6b27188b0688dcdc2b89db3101575c Mon Sep 17 00:00:00 2001 From: Fathi Boudra Date: Fri, 20 Feb 2009 20:24:25 +0000 Subject: Merge Qt4 4.5 branch to trunk. --- .../20_fix_ftbfs_callgrindChildExitCode.diff | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 debian/patches/20_fix_ftbfs_callgrindChildExitCode.diff (limited to 'debian/patches/20_fix_ftbfs_callgrindChildExitCode.diff') diff --git a/debian/patches/20_fix_ftbfs_callgrindChildExitCode.diff b/debian/patches/20_fix_ftbfs_callgrindChildExitCode.diff new file mode 100644 index 0000000..48480fa --- /dev/null +++ b/debian/patches/20_fix_ftbfs_callgrindChildExitCode.diff @@ -0,0 +1,28 @@ +--- a/src/testlib/qtestcase.cpp ++++ b/src/testlib/qtestcase.cpp +@@ -1359,6 +1359,9 @@ int QTest::qExec(QObject *testObject, in + 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 @@ int QTest::qExec(QObject *testObject, in + 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 @@ int QTest::qExec(QObject *testObject, in + QTestResult::setCurrentTestFunction(0); + } + ++ QTestLog::stopLogging(); + #ifdef QT_MAC_USE_COCOA + if (macNeedsActivate) { + IOPMAssertionRelease(powerID); -- cgit v1.2.3