[libcalamares] Test QFileInfo::dir() for completeness
This commit is contained in:
parent
e65969d587
commit
6ede9f2c7c
@ -153,6 +153,9 @@ TestPaths::testCreateTargetBasedirs()
|
|||||||
QVERIFY( dirrm.exists() );
|
QVERIFY( dirrm.exists() );
|
||||||
}
|
}
|
||||||
QVERIFY( !QFile( "/tmp/var/lib/dbus" ).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 )
|
QTEST_GUILESS_MAIN( TestPaths )
|
||||||
|
Loading…
Reference in New Issue
Block a user