diff options
Diffstat (limited to 'xdelta3/testing/test.h')
-rw-r--r-- | xdelta3/testing/test.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xdelta3/testing/test.h b/xdelta3/testing/test.h index 53692fa..12f6b34 100644 --- a/xdelta3/testing/test.h +++ b/xdelta3/testing/test.h | |||
@@ -15,15 +15,15 @@ extern "C" { | |||
15 | 15 | ||
16 | #define CHECK_OP(x,y,OP) \ | 16 | #define CHECK_OP(x,y,OP) \ |
17 | do {if (!((x) OP (y))) { \ | 17 | do {if (!((x) OP (y))) { \ |
18 | cerr << "Check failed: " << #x " " #OP " " #y << endl; \ | 18 | cerr << __FILE__ << ":" << __LINE__ << " Check failed: " << #x " " #OP " " #y << endl; \ |
19 | cerr << "Expected: " << x << endl; \ | 19 | cerr << __FILE__ << ":" << __LINE__ << " Expected: " << x << endl; \ |
20 | cerr << "Actual: " << y << endl; \ | 20 | cerr << __FILE__ << ":" << __LINE__ << " Actual: " << y << endl; \ |
21 | abort(); \ | 21 | abort(); \ |
22 | } } while (false) | 22 | } } while (false) |
23 | 23 | ||
24 | #define CHECK(x) \ | 24 | #define CHECK(x) \ |
25 | do {if (!(x)) { \ | 25 | do {if (!(x)) { \ |
26 | cerr << "Check failed: " << #x << endl; \ | 26 | cerr << __FILE__ << ":" << __LINE__ << " Check failed: " << #x << endl; \ |
27 | abort(); \ | 27 | abort(); \ |
28 | } } while (false) | 28 | } } while (false) |
29 | 29 | ||