~cpick/mongrel2/release

« back to all changes in this revision

Viewing changes to tests/superpoll_tests.c

  • Committer: Chris Pick
  • Date: 2013-06-30 16:39:57 UTC
  • mfrom: (1106.1.15)
  • Revision ID: git-v1:ec39967acb6bc9867ed9b9dc3774304ca6b9c294
Merge tag 'v1.8.1' into debian

Hotfix for github issue 148

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#include <mem/halloc.h>
4
4
 
5
5
#include <superpoll.h>
6
 
#include <zmq.h>
 
6
#include "zmq_compat.h"
7
7
 
8
8
SuperPoll *TEST_POLL = NULL;
9
9
 
75
75
 
76
76
void really_send_toke(struct token *toke)
77
77
{
78
 
        struct fdinfo *inf;
79
78
        int *fds;
80
79
        int fd;
81
80
        int pipe_idx = nr_pipes - toke->thread - 1;
82
81
 
83
82
        fds = pipefds[pipe_idx].fds;
84
83
        fd = fds[WRITE];
85
 
        inf = &fdinfo[fd];
86
84
 
87
85
        debug("sending on pipe index %u, fd %d", pipe_idx, fd);
88
86
 
403
401
}
404
402
 
405
403
RUN_TESTS(all_tests);
406