diff -r e4ebb16b39ea -r 603d3f8b6302 tests/auto/qsystemdisplayinfo/tst_qsystemdisplayinfo.cpp --- a/tests/auto/qsystemdisplayinfo/tst_qsystemdisplayinfo.cpp Fri Sep 17 08:34:34 2010 +0300 +++ b/tests/auto/qsystemdisplayinfo/tst_qsystemdisplayinfo.cpp Mon Oct 04 01:37:06 2010 +0300 @@ -56,13 +56,13 @@ { QSystemDisplayInfo di; QVERIFY(di.displayBrightness(0) > -2); + QVERIFY(di.displayBrightness(999) == -1); } void tst_QSystemDisplayInfo::tst_colorDepth() { QSystemDisplayInfo di; int depth = di.colorDepth(0); - qWarning() << __FUNCTION__ << depth; QVERIFY(depth == 0 || depth == 8 @@ -70,6 +70,8 @@ || depth == 24 || depth == 32 || depth == 64); + + QVERIFY(di.colorDepth(999) == -1); }