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:
parent
f14e268694
commit
e7c5891927
@ -1,6 +1,6 @@
|
||||
CONFIG += testcase
|
||||
CONFIG += parallel_test
|
||||
QT += testlib
|
||||
QT = core testlib
|
||||
SOURCES = ../tst_qtextcodec.cpp
|
||||
|
||||
TARGET = ../tst_qtextcodec
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user