don't test Qt::codecForHtml() - build with -no-gui

the function is a trivial wrapper for the QTextCodec one, so there is
little point in explicitly testing it.

Change-Id: I0c4950e5a54b7ffff9ba73a001cedb517497a596
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Oswald Buddenhagen 2013-10-08 12:38:26 +02:00 committed by The Qt Project
parent f14e268694
commit e7c5891927
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,6 @@
CONFIG += testcase
CONFIG += parallel_test
QT += testlib
QT = core testlib
SOURCES = ../tst_qtextcodec.cpp
TARGET = ../tst_qtextcodec

View File

@ -44,7 +44,6 @@
#include <qtextcodec.h>
#include <qfile.h>
#include <qtextdocument.h>
#include <time.h>
#include <qprocess.h>
#include <QThreadPool>
@ -288,7 +287,7 @@ void tst_QTextCodec::toUnicode_codecForHtml()
QVERIFY(file.open(QFile::ReadOnly));
QByteArray data = file.readAll();
QTextCodec *codec = Qt::codecForHtml(data);
QTextCodec *codec = QTextCodec::codecForHtml(data);
codec->toUnicode(data); // this line crashes
}