summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2009-06-08 12:15:56 (GMT)
committerJanne Anttila <janne.anttila@digia.com>2009-06-08 12:15:56 (GMT)
commit320e003d2ee71b8c58e930dabf0603f6dc1b1647 (patch)
treeb726ab116ca157d01e606bb0c56292438fbe2a26 /tests
parentd21b8174071c56aaf8625229e4b7f50292619868 (diff)
downloadQt-320e003d2ee71b8c58e930dabf0603f6dc1b1647.zip
Qt-320e003d2ee71b8c58e930dabf0603f6dc1b1647.tar.gz
Qt-320e003d2ee71b8c58e930dabf0603f6dc1b1647.tar.bz2
Fix to qplaintextedit::getSetCheck auto test in Symbian.
We cannot use INT_MAX since qreal is typedef to float in Symbian OS.
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qplaintextedit/tst_qplaintextedit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qplaintextedit/tst_qplaintextedit.cpp b/tests/auto/qplaintextedit/tst_qplaintextedit.cpp
index 6835c21..456ab7b 100644
--- a/tests/auto/qplaintextedit/tst_qplaintextedit.cpp
+++ b/tests/auto/qplaintextedit/tst_qplaintextedit.cpp
@@ -221,7 +221,7 @@ void tst_QPlainTextEdit::getSetCheck()
QCOMPARE(0, obj1.tabStopWidth());
obj1.setTabStopWidth(INT_MIN);
QCOMPARE(0, obj1.tabStopWidth()); // Makes no sense to set a negative tabstop value
-#if defined(QT_ARCH_WINDOWSCE)
+#if defined(QT_ARCH_WINDOWSCE) || defined (QT_ARCH_SYMBIAN)
// due to rounding error in qRound when qreal==float
// we cannot use INT_MAX for this check
obj1.setTabStopWidth(SHRT_MAX*2);