tests/auto/qprocess/tst_qprocess.cpp
changeset 7 f7bc934e204c
parent 0 1918ee327afb
child 33 3e2da88830cd
equal deleted inserted replaced
3:41300fa6a67c 7:f7bc934e204c
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the test suite of the Qt Toolkit.
     7 ** This file is part of the test suite of the Qt Toolkit.
     8 **
     8 **
  1650     QSignalSpy stateSpy(&process, SIGNAL(stateChanged(QProcess::ProcessState)));
  1650     QSignalSpy stateSpy(&process, SIGNAL(stateChanged(QProcess::ProcessState)));
  1651     QSignalSpy errorSpy(&process, SIGNAL(error(QProcess::ProcessError)));
  1651     QSignalSpy errorSpy(&process, SIGNAL(error(QProcess::ProcessError)));
  1652     QSignalSpy finishedSpy(&process, SIGNAL(finished(int)));
  1652     QSignalSpy finishedSpy(&process, SIGNAL(finished(int)));
  1653     QSignalSpy finishedSpy2(&process, SIGNAL(finished(int, QProcess::ExitStatus)));
  1653     QSignalSpy finishedSpy2(&process, SIGNAL(finished(int, QProcess::ExitStatus)));
  1654 
  1654 
  1655 // Mac OS X and HP-UX have a really low defualt process limit (~100), so spawning
  1655 // Mac OS X and HP-UX have a really low default process limit (~100), so spawning
  1656 // to many processes here will cause test failures later on.
  1656 // to many processes here will cause test failures later on.
  1657 #if defined Q_OS_HPUX
  1657 #if defined Q_OS_HPUX
  1658    const int attempts = 15;
  1658    const int attempts = 15;
  1659 #elif defined Q_OS_MAC
  1659 #elif defined Q_OS_MAC
  1660    const int attempts = 15;
  1660    const int attempts = 15;