QTestLib-based autotests cannot perform verification steps in the test
class constructor. This needs to be done in initTestCase() instead.
Change-Id: Ib1f7f838f052fa0fc5104603bdac01ffd8313aef
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
{
Q_OBJECT
-public:
- tst_QSettings();
-
public slots:
+ void initTestCase();
void init();
void cleanup();
private slots:
QTest::newRow("custom2") << QSettings::CustomFormat2;
}
-tst_QSettings::tst_QSettings()
+void tst_QSettings::initTestCase()
{
QSettings::Format custom1 = QSettings::registerFormat("custom1", readCustom1File, writeCustom1File);
QSettings::Format custom2 = QSettings::registerFormat("custom2", readCustom2File, writeCustom2File