diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-11-30 16:10:03 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-11-30 16:12:20 (GMT) |
commit | 0eb65a6d6ff0665d6db2d1ba29b700a308a24fca (patch) | |
tree | 55c6970a16c27d419fca62d24c3020a45076c8df /tests | |
parent | 565fece517519e33eb5b73aa9f2a4e55f756f9c5 (diff) | |
download | Qt-0eb65a6d6ff0665d6db2d1ba29b700a308a24fca.zip Qt-0eb65a6d6ff0665d6db2d1ba29b700a308a24fca.tar.gz Qt-0eb65a6d6ff0665d6db2d1ba29b700a308a24fca.tar.bz2 |
Fix tst_qsharedmemory on Unix
executable does not end with .exe on Unix, while it is
valid to call the executable without the .exe on windows
Reviewed-by: Joao
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qsharedmemory/tst_qsharedmemory.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/auto/qsharedmemory/tst_qsharedmemory.cpp b/tests/auto/qsharedmemory/tst_qsharedmemory.cpp index 4ab3b0b..f72b6f7 100644 --- a/tests/auto/qsharedmemory/tst_qsharedmemory.cpp +++ b/tests/auto/qsharedmemory/tst_qsharedmemory.cpp @@ -708,10 +708,7 @@ void tst_QSharedMemory::simpleThreadedProducerConsumer() void tst_QSharedMemory::simpleProcessProducerConsumer_data() { QTest::addColumn<int>("processes"); - int tries = 10; -#ifdef Q_OS_WIN - tries = 5; -#endif + int tries = 5; for (int i = 0; i < tries; ++i) { QTest::newRow("1 process") << 1; QTest::newRow("5 processes") << 5; @@ -737,7 +734,7 @@ void tst_QSharedMemory::simpleProcessProducerConsumer() #endif QProcess producer; producer.setProcessChannelMode(QProcess::ForwardedChannels); - producer.start( QFileInfo("./lackey/lackey.exe").absoluteFilePath(), arguments); + producer.start( "./lackey/lackey", arguments); producer.waitForStarted(); QVERIFY(producer.error() != QProcess::FailedToStart); |