diff options
author | Keith Isdale <keith.isdale@nokia.com> | 2010-07-23 10:53:35 +1000 |
---|---|---|
committer | Keith Isdale <keith.isdale@nokia.com> | 2010-07-23 10:53:35 +1000 |
commit | 9e03da7e9404752219ba96a88576a0ea01d5a675 (patch) | |
tree | bb8cbb43e78e25bfa45a3ba8c2c39400f35bc959 /libqsystemtest/qabstracttest.cpp | |
parent | 95e90557a18e5dc1cb3cd5f9f91554e68bbbc6a5 (diff) | |
parent | dff9fdff49679aaf332ec0bbc219104c2e2eb73d (diff) |
Merge branch 'master' of git://git-nokia.trolltech.com.au/qtsoftware/research/qtuitest
Diffstat (limited to 'libqsystemtest/qabstracttest.cpp')
-rw-r--r-- | libqsystemtest/qabstracttest.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libqsystemtest/qabstracttest.cpp b/libqsystemtest/qabstracttest.cpp index 0b0a5a5..bf6ea0b 100644 --- a/libqsystemtest/qabstracttest.cpp +++ b/libqsystemtest/qabstracttest.cpp @@ -305,6 +305,7 @@ QString QAbstractTest::currentTestFunction( bool fullName ) const return fullName ? (testCaseName() + "::" + QTest::currentTestFunction()) : (QTest::currentTestFunction()); } +#ifndef QTCREATOR_QTEST /* \internal Executes all test functions as specified on the command line, while running the @@ -337,7 +338,9 @@ int QAbstractTest::exec( int argc, char* argv[], char* filename ) delete[] _argv; return ret; } +#endif +#ifndef QTCREATOR_QTEST /* \internal Print a usage message. @@ -383,6 +386,7 @@ void QAbstractTest::printUsage( int argc, char* argv[] ) const " of the directory containing the test source file, then in $HOME/.qtest\n" , (argc) ? argv[0] : "test"); } +#endif /* \internal @@ -451,8 +455,10 @@ void QAbstractTest::processCommandLine( int &argc, char* argv[] ) !strcasecmp(argv[i], "-h") ) { argv[i] = 0; offset++; +#ifndef QTCREATOR_QTEST printUsage(argc-offset, argv); exit(0); +#endif // Silently ignore a few system test specific arguments. // For compatibility, we'll silently ignore these so that @@ -495,6 +501,7 @@ void handle_segfault(int signum) } #endif +# ifndef QTCREATOR_QTEST /* \internal Run test with arguments \a argc, \a argv, and return an exit code. @@ -511,6 +518,7 @@ int QAbstractTest::runTest(int argc, char *argv[]) return QTest::qExec( this, argc, argv ); return -1; } +#endif /*! \internal |