~ubuntu-branches/ubuntu/wily/zeromq3/wily-proposed

« back to all changes in this revision

Viewing changes to tests/test_pair_tcp.cpp

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2014-03-16 14:02:28 UTC
  • mfrom: (1.1.6) (6.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20140316140228-ig1sgh7czk59m9ux
Tags: 4.0.4+dfsg-1
* QA upload; orphan the package
  - Upload to unstable
* New upstream release
* Update repack.stub script
* Drop 02_fix-exported-symbols.patch and 03_fix-s390-rdtsc.patch
  (merged upstream)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
    Copyright (c) 2010-2011 250bpm s.r.o.
3
 
    Copyright (c) 2011 iMatix Corporation
4
 
    Copyright (c) 2010-2011 Other contributors as noted in the AUTHORS file
 
2
    Copyright (c) 2007-2013 Contributors as noted in the AUTHORS file
5
3
 
6
4
    This file is part of 0MQ.
7
5
 
19
17
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
18
*/
21
19
 
22
 
#include <stdio.h>
23
20
#include "testutil.hpp"
24
21
 
25
22
int main (void)
26
23
{
27
 
    fprintf (stderr, "test_pair_tcp running...\n");
28
 
 
29
 
    void *ctx = zmq_init (1);
 
24
    setup_test_environment();
 
25
    void *ctx = zmq_ctx_new ();
30
26
    assert (ctx);
31
27
 
32
28
    void *sb = zmq_socket (ctx, ZMQ_PAIR);
47
43
    rc = zmq_close (sb);
48
44
    assert (rc == 0);
49
45
 
50
 
    rc = zmq_term (ctx);
 
46
    rc = zmq_ctx_term (ctx);
51
47
    assert (rc == 0);
52
48
 
53
49
    return 0 ;