diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-06-14 08:14:09 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-06-14 08:14:09 +0200 |
commit | 0bb0d07abd789d4efa285e757efd14b3717db0a1 (patch) | |
tree | aeb958d774ff994ac0c0c69c72dd4f3548e76cad /tests/pair_ipc.cpp | |
parent | 1f6d8da319eb536782c0f9d0b30bcc085ede646f (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/pair_ipc.cpp')
-rw-r--r-- | tests/pair_ipc.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/pair_ipc.cpp b/tests/pair_ipc.cpp index ef39bfc..38ab4d9 100644 --- a/tests/pair_ipc.cpp +++ b/tests/pair_ipc.cpp @@ -32,28 +32,28 @@ int XS_TEST_MAIN () fprintf (stderr, "pair_ipc test running...\n"); void *ctx = xs_init (); - assert (ctx); + errno_assert (ctx); void *sb = xs_socket (ctx, XS_PAIR); - assert (sb); + errno_assert (sb); int rc = xs_bind (sb, "ipc:///tmp/tester"); - assert (rc != -1); + errno_assert (rc != -1); void *sc = xs_socket (ctx, XS_PAIR); - assert (sc); + errno_assert (sc); rc = xs_connect (sc, "ipc:///tmp/tester"); - assert (rc != -1); + errno_assert (rc != -1); bounce (sb, sc); rc = xs_close (sc); - assert (rc == 0); + errno_assert (rc == 0); rc = xs_close (sb); - assert (rc == 0); + errno_assert (rc == 0); rc = xs_term (ctx); - assert (rc == 0); + errno_assert (rc == 0); return 0 ; } |