summaryrefslogtreecommitdiff
path: root/ept
diff options
context:
space:
mode:
authorEnrico Zini <enrico@enricozini.org>2010-07-14 23:39:34 +0100
committerEnrico Zini <enrico@enricozini.org>2010-07-14 23:39:34 +0100
commit95b7bfe5eaa069bf48e19d50067a99faa00b8034 (patch)
treec3d2728fc7f52494ece171f8ba03beca95ae3040 /ept
parent31f61126dac7bcfa0fd10bed289ae1642f90c112 (diff)
downloadlibept-95b7bfe5eaa069bf48e19d50067a99faa00b8034.tar.gz
Improved one assertion, added more prints, try a workaround
Diffstat (limited to 'ept')
-rw-r--r--ept/apt/apt.test.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/ept/apt/apt.test.h b/ept/apt/apt.test.h
index 0937411..0e88eb9 100644
--- a/ept/apt/apt.test.h
+++ b/ept/apt/apt.test.h
@@ -109,17 +109,18 @@ struct TestApt : AptTestEnvironment {
// Check the raw record accessor
Test rawRecord()
{
- string pkg("sp");
+ string pkg("autobook");
Version ver = apt.candidateVersion(pkg);
cerr << "CAND VER " << ver.name() << " v " << ver.version() << endl;
+ assert(ver.isValid());
assert(apt.validate(ver) == ver);
string record = apt.rawRecord(ver);
cerr << "GOT RECORD:" << endl << record << "---------" << endl;
- assert(record.find("Package: sp") != string::npos);
- assert(record.find("Section: text") != string::npos);
+ assert(record.find("Package: autobook") != string::npos);
+ assert(record.find("Section: doc") != string::npos);
- record = apt.rawRecord(Version("sp", "0.31415"));
+ record = apt.rawRecord(Version("autobook", "0.31415"));
assert_eq(record, string());
assert_eq(apt.rawRecord(pkg), apt.rawRecord(apt.anyVersion(pkg)));
@@ -143,6 +144,7 @@ struct TestApt : AptTestEnvironment {
for (Apt::record_iterator i = apt.recordBegin();
i != apt.recordEnd(); ++i)
{
+ cerr << "DEBUG Iterate record " << count << endl;
assert((*i).size() > 8);
assert_eq((*i).substr(0, 8), "Package:");
++count;