tst_qstorageinfo: Test the copy ctor

It was previously untested

Task-number: QTBUG-88183
Pick-to: 6.0
Change-Id: Icc59fc632957a75cac8c7f5e2a1aed88a1c9ff9d
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
Mårten Nordheim 2020-11-18 16:13:15 +01:00
parent 0592369df4
commit a7610a0cf7

View File

@ -109,6 +109,13 @@ void tst_QStorageInfo::operatorEqual()
QStorageInfo storage2;
QCOMPARE(storage1, storage2);
}
// Test copy ctor
{
QStorageInfo storage1 = QStorageInfo::root();
QStorageInfo storage2(storage1);
QCOMPARE(storage1, storage2);
}
}
void tst_QStorageInfo::operatorNotEqual()