diff options
author | Fathi Boudra <fabo@debian.org> | 2009-02-20 20:24:25 +0000 |
---|---|---|
committer | Fathi Boudra <fabo@debian.org> | 2009-02-20 20:24:25 +0000 |
commit | 7b37d1bc4f6b27188b0688dcdc2b89db3101575c (patch) | |
tree | dccc02bc71441fbb202d0bfd622af264fc33c89f /debian/patches/20_fix_ftbfs_callgrindChildExitCode.diff | |
parent | 6ad728b38295ae6479662a58b8c640f389bfa607 (diff) | |
download | qt4-x11-1ed1998e0b4e9ce63e47de6c12088eacc40ed46c.tar.gz |
Merge Qt4 4.5 branch to trunk.debian/4.5.0-rc1-1
Diffstat (limited to 'debian/patches/20_fix_ftbfs_callgrindChildExitCode.diff')
-rw-r--r-- | debian/patches/20_fix_ftbfs_callgrindChildExitCode.diff | 28 |
1 files changed, 28 insertions, 0 deletions
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); |