summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2012-03-12 22:14:43 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2012-03-12 22:14:43 +0100
commit93cf878a487d952c29dabd0076592d006ca221a4 (patch)
treeaca4e6ebbd45bcf53488e8d7231b24d9ef9be040
parentfb30d013729f5dc8f256b6d5269f65e4b864d47c (diff)
downloadrockbox-93cf878a487d952c29dabd0076592d006ca221a4.tar.gz
rockbox-93cf878a487d952c29dabd0076592d006ca221a4.tar.bz2
rockbox-93cf878a487d952c29dabd0076592d006ca221a4.zip
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
-rw-r--r--rbutil/rbutilqt/test/test-rockboxinfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/test/test-rockboxinfo.cpp b/rbutil/rbutilqt/test/test-rockboxinfo.cpp
index 6fb45fd028..310a0770b3 100644
--- a/rbutil/rbutilqt/test/test-rockboxinfo.cpp
+++ b/rbutil/rbutilqt/test/test-rockboxinfo.cpp
@@ -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));
}
}