summaryrefslogtreecommitdiffstats
path: root/tests/auto/qglyphs
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2010-06-07 10:14:10 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2010-06-07 10:25:37 (GMT)
commit9e712c65899681ca08534476145dda05e5edb0bc (patch)
treebcf072734f5da7c083a04d4ef5ca3e11105ce23e /tests/auto/qglyphs
parent3ef17db7085f0b77661ced78522c8cfcb0e52144 (diff)
downloadQt-9e712c65899681ca08534476145dda05e5edb0bc.zip
Qt-9e712c65899681ca08534476145dda05e5edb0bc.tar.gz
Qt-9e712c65899681ca08534476145dda05e5edb0bc.tar.bz2
Fix maketestselftest by adding the qglyphs test
Also make the test find the font in shadow build Reviewed-by: eskil
Diffstat (limited to 'tests/auto/qglyphs')
-rw-r--r--tests/auto/qglyphs/qglyphs.pro6
-rw-r--r--tests/auto/qglyphs/tst_qglyphs.cpp2
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/auto/qglyphs/qglyphs.pro b/tests/auto/qglyphs/qglyphs.pro
index 70920f0..5084cf9 100644
--- a/tests/auto/qglyphs/qglyphs.pro
+++ b/tests/auto/qglyphs/qglyphs.pro
@@ -3,3 +3,9 @@ QT = core gui
SOURCES += \
tst_qglyphs.cpp
+
+wince*|symbian*: {
+ DEFINES += SRCDIR=\\\"\\\"
+} else {
+ DEFINES += SRCDIR=\\\"$$PWD/\\\"
+} \ No newline at end of file
diff --git a/tests/auto/qglyphs/tst_qglyphs.cpp b/tests/auto/qglyphs/tst_qglyphs.cpp
index c906f10..2a0e670 100644
--- a/tests/auto/qglyphs/tst_qglyphs.cpp
+++ b/tests/auto/qglyphs/tst_qglyphs.cpp
@@ -77,7 +77,7 @@ Q_DECLARE_METATYPE(QGlyphs);
void tst_QGlyphs::initTestCase()
{
- m_testFontId = QFontDatabase::addApplicationFont("test.ttf");
+ m_testFontId = QFontDatabase::addApplicationFont(SRCDIR "test.ttf");
QVERIFY(m_testFontId >= 0);
m_testFont = QFont("QtsSpecialTestFont");