QSqlError test: Fix isValid()-check for constructed QSqlError.

Change-Id: I4dc1f537226139ceca017cc36abadd2fba4ce35b
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
This commit is contained in:
Marcel Krems 2013-02-03 04:18:45 +01:00 committed by The Qt Project
parent e01343352e
commit 513971eecd

View File

@ -102,7 +102,7 @@ void tst_QSqlError::construction()
QCOMPARE(obj1.databaseText(), QString("databasetext"));
QCOMPARE(obj1.type(), QSqlError::UnknownError);
QCOMPARE(obj1.number(), 123);
obj1.isValid();
QVERIFY(obj1.isValid());
QSqlError obj2(obj1);
QCOMPARE(obj2.driverText(), obj1.driverText());