From a7610a0cf79c576b098999822c5070a078e51326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Wed, 18 Nov 2020 16:13:15 +0100 Subject: [PATCH] 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 --- tests/auto/corelib/io/qstorageinfo/tst_qstorageinfo.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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()