|
|
|
@ -64,7 +64,8 @@ CreateLayoutsTests::testFixedSizePartition()
|
|
|
|
|
QFAIL( qPrintable( "Unable to create / partition" ) );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
partitions = layout.createPartitions( static_cast< Device* >( &dev ), 0, dev.totalLogical(), nullptr, nullptr, role );
|
|
|
|
|
partitions
|
|
|
|
|
= layout.createPartitions( static_cast< Device* >( &dev ), 0, dev.totalLogical(), nullptr, nullptr, role );
|
|
|
|
|
|
|
|
|
|
QCOMPARE( partitions.count(), 1 );
|
|
|
|
|
|
|
|
|
@ -84,7 +85,8 @@ CreateLayoutsTests::testPercentSizePartition()
|
|
|
|
|
QFAIL( qPrintable( "Unable to create / partition" ) );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
partitions = layout.createPartitions( static_cast< Device* >( &dev ), 0, dev.totalLogical(), nullptr, nullptr, role );
|
|
|
|
|
partitions
|
|
|
|
|
= layout.createPartitions( static_cast< Device* >( &dev ), 0, dev.totalLogical(), nullptr, nullptr, role );
|
|
|
|
|
|
|
|
|
|
QCOMPARE( partitions.count(), 1 );
|
|
|
|
|
|
|
|
|
@ -114,7 +116,8 @@ CreateLayoutsTests::testMixedSizePartition()
|
|
|
|
|
QFAIL( qPrintable( "Unable to create /bkup partition" ) );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
partitions = layout.createPartitions( static_cast< Device* >( &dev ), 0, dev.totalLogical(), nullptr, nullptr, role );
|
|
|
|
|
partitions
|
|
|
|
|
= layout.createPartitions( static_cast< Device* >( &dev ), 0, dev.totalLogical(), nullptr, nullptr, role );
|
|
|
|
|
|
|
|
|
|
QCOMPARE( partitions.count(), 3 );
|
|
|
|
|
|
|
|
|
@ -155,6 +158,4 @@ TestDevice::TestDevice( const QString& name, const qint64 logicalSectorSize, con
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
TestDevice::~TestDevice()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
TestDevice::~TestDevice() {}
|
|
|
|
|