From 0bb0d07abd789d4efa285e757efd14b3717db0a1 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 14 Jun 2012 08:14:09 +0200 Subject: errno errors reported in tests Till now when a test failed the value or errno haven't been reported. This patch fixes the problem. Signed-off-by: Martin Sustrik --- tests/emptyctx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/emptyctx.cpp') diff --git a/tests/emptyctx.cpp b/tests/emptyctx.cpp index 1448254..0c95446 100644 --- a/tests/emptyctx.cpp +++ b/tests/emptyctx.cpp @@ -27,9 +27,9 @@ int XS_TEST_MAIN () // This is a very simple test to check whether everything works OK when // context is terminated even before I/O threads were launched. void *ctx = xs_init (); - assert (ctx); + errno_assert (ctx); int rc = xs_term (ctx); - assert (rc == 0); + errno_assert (rc == 0); return 0 ; } -- cgit v1.2.3