<table><tr><td style="">adridg edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-mfkpu52i5erxjf6/">(Show Details)</a>
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D21305">View Revision</a></tr></table><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div> ```<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>#include <kosrelease.h><br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>#include <QDebug><br />
<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>static void derp(const QString& s)<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>{<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>qDebug() << s;<br />
<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>KOSRelease r(s);<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>qDebug() << " name" << r.name() <br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span><< "\n version" << r.version();<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>}<br />
<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>int main(int argc, char **argv)<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>{<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>derp(QString());<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>derp("/usr/local/etc/os-release");<br />
<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>return 0;<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>}<div style="padding: 8px 0;">...</div> ```<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>#include <QtCore/QFile><br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>#include <QtCore/QString><br />
<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>QString defaultFilePath()<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>{<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>#ifdef ONE<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>if (QFile::exists(QStringLiteral("/etc/os-release"))) {<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>return QStringLiteral("/etc/os-release");<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>} else if (QFile::exists(QStringLiteral("/usr/lib/os-release"))) {<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>return QStringLiteral("/usr/lib/os-release");<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>} else {<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>return QString();<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>}<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>#endif<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>#ifdef TWO<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>for (const auto& path : { <br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>QStringLiteral("/etc/os-release"),<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>QStringLiteral("/usr/lib/os-release")<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>}) {<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>if (QFile::exists(path)) {<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>return path;<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>}<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>}<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>return QString();<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>#endif<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> </span>}<div style="padding: 8px 0;">...</div></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R244 KCoreAddons</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D21305">https://phabricator.kde.org/D21305</a></div></div><br /><div><strong>To: </strong>adridg, sitter<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>