summaryrefslogtreecommitdiff
path: root/test/libapt/assert.h
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2013-03-17 19:51:02 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2013-03-17 19:51:02 +0100
commitd4ddc5b94d6abbd33a3001d27ff5d9698be3f820 (patch)
tree8769b5157a1e3f99967d3922c4ce07b400103be5 /test/libapt/assert.h
parentfd6a8d0ddc14406bb6c0996b5bbaa95d6ccc1186 (diff)
* test/libapt/assert.h, test/libapt/run-tests:
- exit with status 1 on test failure
Diffstat (limited to 'test/libapt/assert.h')
-rw-r--r--test/libapt/assert.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/libapt/assert.h b/test/libapt/assert.h
index fdf6740c6..113c057ed 100644
--- a/test/libapt/assert.h
+++ b/test/libapt/assert.h
@@ -1,4 +1,5 @@
#include <iostream>
+#include <cstdlib>
#define equals(x,y) assertEquals(y, x, __LINE__)
#define equalsNot(x,y) assertEqualsNot(y, x, __LINE__)
@@ -6,6 +7,7 @@
template < typename X, typename Y >
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;
+ std::exit(EXIT_FAILURE);
}
template < typename X, typename Y >