[libcalamares] If test is going to fail, be more verbose on failure

This commit is contained in:
Adriaan de Groot 2019-09-30 17:54:44 +02:00
parent 9ad5ba36b0
commit 70fc480c56

View File

@ -52,7 +52,14 @@ assert_is_invalid( const InstanceKey& k )
QVERIFY( !k.isCustom() ); QVERIFY( !k.isCustom() );
QVERIFY( k.module().isEmpty() ); QVERIFY( k.module().isEmpty() );
QVERIFY( k.id().isEmpty() ); QVERIFY( k.id().isEmpty() );
if ( k.toString().isEmpty() )
{
QVERIFY( k.toString().isEmpty() ); QVERIFY( k.toString().isEmpty() );
}
else
{
QCOMPARE( k.toString(), QString() );
}
} }
void void