diff options
author | David Kalnischkies <david@kalnischkies.de> | 2014-04-15 10:21:52 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2014-04-16 17:04:17 +0200 |
commit | bb93178b8b5c2f8021977dbc34066f0d0fb8b9b9 (patch) | |
tree | 41982ad9b30b06242357a55a84813cf3b4bee0f1 /test/libapt/assert.h | |
parent | 76bd63e2dc6ac5aaaf7f2cc98c2a83ab88ccc46c (diff) |
clear HitEof flag in FileFd::Seek
fseek and co do this to their eof-flags and it is more logic this way as
we will usually seek away from the end (e.g. to re-read the file).
The commit also improves the testcase further and adds a test for the
binary compressor codepath (as gz, bzip2 and xz are handled by
libraries) via the use of 'rev' as a 'compressor'.
Diffstat (limited to 'test/libapt/assert.h')
-rw-r--r-- | test/libapt/assert.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/libapt/assert.h b/test/libapt/assert.h index 357801592..3e45143a3 100644 --- a/test/libapt/assert.h +++ b/test/libapt/assert.h @@ -2,6 +2,7 @@ #include <cstdlib> #include <apt-pkg/macros.h> +#include <apt-pkg/error.h> #if __GNUC__ >= 4 #pragma GCC diagnostic push @@ -14,6 +15,7 @@ template < typename X, typename Y > APT_NORETURN void OutputAssertEqual(X expect, char const* compare, Y get, unsigned long const &line) { std::cerr << "Test FAILED: »" << expect << "« " << compare << " »" << get << "« at line " << line << std::endl; + _error->DumpErrors(std::cerr); std::exit(EXIT_FAILURE); } |