diff options
author | Harald Fernengel <harald@trolltech.com> | 2009-07-21 11:19:49 (GMT) |
---|---|---|
committer | Harald Fernengel <harald@trolltech.com> | 2009-07-21 11:20:03 (GMT) |
commit | 31e358f2290c145b839fc5b7b277922c1ab6e19b (patch) | |
tree | 6569829854abd6c2011f740c3d91f6fe9e890836 /tests/auto/qdirectpainter | |
parent | 2db22b1b12cc7579d08a83ad889efe7f8f07c843 (diff) | |
download | Qt-31e358f2290c145b839fc5b7b277922c1ab6e19b.zip Qt-31e358f2290c145b839fc5b7b277922c1ab6e19b.tar.gz Qt-31e358f2290c145b839fc5b7b277922c1ab6e19b.tar.bz2 |
fix tests for QT_NO_PROCESS and when running tests as root
Diffstat (limited to 'tests/auto/qdirectpainter')
-rw-r--r-- | tests/auto/qdirectpainter/tst_qdirectpainter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qdirectpainter/tst_qdirectpainter.cpp b/tests/auto/qdirectpainter/tst_qdirectpainter.cpp index e300244..d5c0ef8 100644 --- a/tests/auto/qdirectpainter/tst_qdirectpainter.cpp +++ b/tests/auto/qdirectpainter/tst_qdirectpainter.cpp @@ -175,6 +175,9 @@ void tst_QDirectPainter::setGeometry() void tst_QDirectPainter::regionSynchronization() { +#ifdef QT_NO_PROCESS + QSKIP("Test requires QProcess", SkipAll); +#else QRect dpRect(10, 10, 50, 50); // Start the direct painter in a different process @@ -211,6 +214,7 @@ void tst_QDirectPainter::regionSynchronization() QVERIFY(i > 100); // sanity check proc.kill(); +#endif } class MyObject : public QObject |