mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
kwin: do not test canonical name if getaddrinfo() fails
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
96ecc857aa
commit
dd4dfe1848
1 changed files with 7 additions and 5 deletions
|
@ -104,12 +104,14 @@ void TestClientMachine::hostName_data()
|
|||
QTest::newRow("ostname") << cutted << cutted << false;
|
||||
QByteArray domain("random.name.not.exist.tld");
|
||||
QTest::newRow("domain") << domain << domain << false;
|
||||
if (!m_fqdn.isEmpty()) {
|
||||
QTest::newRow("fqdn") << m_fqdn << m_fqdn << true;
|
||||
QTest::newRow("FQDN") << m_fqdn.toUpper() << m_fqdn.toUpper() << true;
|
||||
cutted = m_fqdn;
|
||||
cutted.remove(0, 1);
|
||||
QTest::newRow("qdn") << cutted << cutted << false;
|
||||
}
|
||||
}
|
||||
|
||||
void TestClientMachine::hostName()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue