[libcalamares] Test QFileInfo::dir() for completeness

This commit is contained in:
Adriaan de Groot 2020-02-07 16:08:38 +01:00
parent e65969d587
commit 6ede9f2c7c

View File

@ -153,6 +153,9 @@ TestPaths::testCreateTargetBasedirs()
QVERIFY( dirrm.exists() );
}
QVERIFY( !QFile( "/tmp/var/lib/dbus" ).exists() );
// QFileInfo.dir() behaves even when things don't exist
QCOMPARE( QFileInfo( "/tmp/var/lib/dbus/bogus" ).dir().path(), QStringLiteral( "/tmp/var/lib/dbus" ) );
}
QTEST_GUILESS_MAIN( TestPaths )