diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2010-06-07 10:14:10 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2010-06-07 10:25:37 (GMT) |
commit | 9e712c65899681ca08534476145dda05e5edb0bc (patch) | |
tree | bcf072734f5da7c083a04d4ef5ca3e11105ce23e /tests/auto/qglyphs | |
parent | 3ef17db7085f0b77661ced78522c8cfcb0e52144 (diff) | |
download | Qt-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.pro | 6 | ||||
-rw-r--r-- | tests/auto/qglyphs/tst_qglyphs.cpp | 2 |
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"); |