<table><tr><td style="">sitter created this revision.<br />sitter added a reviewer: Plasma.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />sitter requested review of this revision.
</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/D22328">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>the basic OS info is decided at compile time, on top of that<br />
influences whether lsbrelease and osrelease are even run, and also<br />
acts as seed value for some other members.<br />
this resulted in tests failing on freebsd because it would detect freebsd<br />
as build platform and then skip all the advanced lookup tech and having<br />
unexpected values.</p>
<p>fetchOSBasicInformation is now a dangling static and used to determine<br />
the default constructed config value of the operating system.<br />
this is now also forced to read Linux for the tests.</p>
<p>I've also changed all the QLatin1Strings in the function to QStringLiteral.<br />
as I recall QL1S is only faster when not turning the object into a<br />
full QString, so these values shouldn't be QL1S.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>tests pass on linux still (and hopefully freebsd CI too)</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R871 DrKonqi</div></div></div><br /><div><strong>BRANCH</strong><div><div>sitter/fetchosbasic</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22328">https://phabricator.kde.org/D22328</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/systeminformation.cpp<br />
src/systeminformation.h<br />
src/tests/systeminformationtest.cpp</div></div></div><br /><div><strong>To: </strong>sitter, Plasma<br /><strong>Cc: </strong>plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>