summaryrefslogtreecommitdiffstats
path: root/tests/auto/qglyphs
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2010-06-07 12:14:10 +0200
committerOlivier Goffart <olivier.goffart@nokia.com>2010-06-07 12:25:37 +0200
commit9e712c65899681ca08534476145dda05e5edb0bc (patch)
treebcf072734f5da7c083a04d4ef5ca3e11105ce23e /tests/auto/qglyphs
parent3ef17db7085f0b77661ced78522c8cfcb0e52144 (diff)
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 70920f08a3..5084cf9908 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 c906f10049..2a0e6701fa 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");