diff options
author | Enrico Zini <enrico@enricozini.org> | 2010-07-14 23:39:34 +0100 |
---|---|---|
committer | Enrico Zini <enrico@enricozini.org> | 2010-07-14 23:39:34 +0100 |
commit | 95b7bfe5eaa069bf48e19d50067a99faa00b8034 (patch) | |
tree | c3d2728fc7f52494ece171f8ba03beca95ae3040 | |
parent | 31f61126dac7bcfa0fd10bed289ae1642f90c112 (diff) | |
download | libept-95b7bfe5eaa069bf48e19d50067a99faa00b8034.tar.gz |
Improved one assertion, added more prints, try a workaround
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | ept/apt/apt.test.h | 10 |
3 files changed, 13 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index fd9a463..5418d95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ include( FindDoxygen ) add_custom_target( unit ) -set( EPT_VERSION "1.0.2+test0" ) +set( EPT_VERSION "1.0.2+test1" ) set( APT_INCLUDES "/usr/include/" CACHE STRING "apt include path" ) set( APT_LINKDIRS "/usr/lib/" CACHE STRING "apt library path" ) set( OPT_FLAGS "-O0 -g" CACHE STRING "optimization level" ) diff --git a/debian/changelog b/debian/changelog index 5744934..993cfd6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +libept (1.0.2+test1) experimental; urgency=low + + * Improved one assertion, added more prints, try a workaround + + -- Enrico Zini <enrico@debian.org> Wed, 14 Jul 2010 23:39:10 +0100 + libept (1.0.2+test0) experimental; urgency=low * Added debugging prints to help debug #587764 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; |