summaryrefslogtreecommitdiff
path: root/tests/emptyctx.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-06-14 08:14:09 +0200
committerMartin Sustrik <sustrik@250bpm.com>2012-06-14 08:14:09 +0200
commit0bb0d07abd789d4efa285e757efd14b3717db0a1 (patch)
treeaeb958d774ff994ac0c0c69c72dd4f3548e76cad /tests/emptyctx.cpp
parent1f6d8da319eb536782c0f9d0b30bcc085ede646f (diff)
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 <sustrik@250bpm.com>
Diffstat (limited to 'tests/emptyctx.cpp')
-rw-r--r--tests/emptyctx.cpp4
1 files changed, 2 insertions, 2 deletions
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 ;
}