mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Test: check retrieved version string as well.
As originally intended check if the retrieved version string is correct instead of ignoring it. Change-Id: If4dad224e999a90607dee3eb723400c12f5b7362
This commit is contained in:
parent
fb30d01372
commit
93cf878a48
1 changed files with 2 additions and 0 deletions
|
|
@ -45,6 +45,7 @@ void TestRockboxInfo::testVersion()
|
|||
|
||||
const struct testvector testdata[] =
|
||||
{
|
||||
/* Input string revision full version release version */
|
||||
{ "Version: r29629-110321", "29629", "r29629-110321", "" },
|
||||
{ "Version: r29629M-110321", "29629M", "r29629M-110321", "" },
|
||||
{ "Version: 3.10", "", "3.10", "3.10" },
|
||||
|
|
@ -68,6 +69,7 @@ void TestRockboxInfo::testVersion()
|
|||
RockboxInfo info("", filename);
|
||||
QCOMPARE(info.version(), QString(testdata[i].versionstring));
|
||||
QCOMPARE(info.revision(), QString(testdata[i].revisionstring));
|
||||
QCOMPARE(info.release(), QString(testdata[i].releasestring));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue