tst_qstorageinfo: Test the copy ctor
It was previously untested Task-number: QTBUG-88183 Change-Id: Icc59fc632957a75cac8c7f5e2a1aed88a1c9ff9d Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> (cherry picked from commit a7610a0cf79c576b098999822c5070a078e51326) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
ba291add45
commit
cfa83bbc15
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user