Remove QWS references from testlib
authorGirish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Wed, 20 Jun 2012 01:22:44 +0000 (18:22 -0700)
committerQt by Nokia <qt-info@nokia.com>
Thu, 21 Jun 2012 08:55:39 +0000 (10:55 +0200)
Change-Id: Iad52a5c44b27cb11a47987c9f8890cc67b557fb7
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
src/testlib/qbenchmarkvalgrind.cpp
src/testlib/qtestcase.cpp

index c4a4990..a2c7345 100644 (file)
@@ -195,13 +195,6 @@ bool QBenchmarkValgrindUtils::runCallgrindSubProcess(const QStringList &origAppA
          << QLatin1String("--quiet")
          << execFile << QLatin1String("-callgrindchild");
 
-#if (defined Q_WS_QWS)
-    // While running the child process, we aren't processing events, and hence aren't
-    // acting as the QWS server. Therefore it's necessary to tell the child to act
-    // as its own server instead of connecting to us.
-    args << QLatin1String("-qws");
-#endif
-
     // pass on original arguments that make sense (e.g. avoid wasting time producing output
     // that will be ignored anyway) ...
     for (int i = 1; i < origAppArgs.size(); ++i) {
index cf1d0be..e0c330d 100644 (file)
@@ -1970,9 +1970,6 @@ FatalSignalHandler::FatalSignalHandler()
 
     for (int i = 0; fatalSignals[i]; ++i) {
         sigaction(fatalSignals[i], &act, &oldact);
-#ifndef Q_WS_QWS
-        // Don't overwrite any non-default handlers
-        // however, we need to replace the default QWS handlers
         if (
 #ifdef SA_SIGINFO
             oldact.sa_flags & SA_SIGINFO ||
@@ -1980,7 +1977,6 @@ FatalSignalHandler::FatalSignalHandler()
             oldact.sa_handler != SIG_DFL) {
             sigaction(fatalSignals[i], &oldact, 0);
         } else
-#endif
         {
             sigaddset(&handledSignals, fatalSignals[i]);
         }