summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qstorageinfo
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2020-11-18 16:13:15 +0100
committerMårten Nordheim <marten.nordheim@qt.io>2020-12-03 23:17:46 +0000
commita7610a0cf79c576b098999822c5070a078e51326 (patch)
treeb01441836820c7ff738fbf91cf710743d48e01fd /tests/auto/corelib/io/qstorageinfo
parent0592369df4956d91019c09448e00d479a21fec8f (diff)
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>
Diffstat (limited to 'tests/auto/corelib/io/qstorageinfo')
-rw-r--r--tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp b/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp
index 7dd76a2be1..ff89dc0f35 100644
--- a/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp
+++ b/tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp
@@ -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()