[locale] Repair tests

It is unclear how this could have worked previously:
the only code path through currentLocationStatus()
checks the pointer, also.
This commit is contained in:
Adriaan de Groot 2024-10-22 21:14:38 +02:00
parent 35aa975a74
commit f4d62f0f41

View File

@ -293,8 +293,8 @@ LocaleTests::testConfigInitialization()
{
Config c;
QVERIFY( !c.currentLocation() );
QVERIFY( !c.currentLocationStatus().isEmpty() );
QCOMPARE( c.currentLocation(), nullptr );
QVERIFY( c.currentLocationStatus().isEmpty() );
}
void