0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +08:00

Tests print their name before running

This makes finding out which test have hung-up easier.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
Martin Sustrik 2011-11-01 13:54:28 +01:00
parent 7842c71073
commit 7563518929
12 changed files with 36 additions and 0 deletions

View File

@ -21,11 +21,14 @@
#include <assert.h>
#include <stdio.h>
#include "testutil.hpp"
int main (int argc, char *argv [])
{
fprintf (stderr, "test_hwm running...\n");
void *ctx = zmq_init (1);
assert (ctx);

View File

@ -22,9 +22,12 @@
#include "../include/zmq.h"
#include <assert.h>
#include <stdio.h>
int main (int argc, char *argv [])
{
fprintf (stderr, "test_pair_inproc running...\n");
// Create REQ/XREP wiring.
void *ctx = zmq_init (1);
assert (ctx);

View File

@ -20,10 +20,13 @@
*/
#include <assert.h>
#include <stdio.h>
#include "testutil.hpp"
int main (int argc, char *argv [])
{
fprintf (stderr, "test_pair_inproc running...\n");
void *ctx = zmq_init (0);
assert (ctx);

View File

@ -20,10 +20,13 @@
*/
#include <assert.h>
#include <stdio.h>
#include "testutil.hpp"
int main (int argc, char *argv [])
{
fprintf (stderr, "test_pair_ipc running...\n");
void *ctx = zmq_init (1);
assert (ctx);

View File

@ -20,10 +20,13 @@
*/
#include <assert.h>
#include <stdio.h>
#include "testutil.hpp"
int main (int argc, char *argv [])
{
fprintf (stderr, "test_pair_tcp running...\n");
void *ctx = zmq_init (1);
assert (ctx);

View File

@ -22,11 +22,14 @@
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include "../include/zmq.h"
int main (int argc, char *argv [])
{
fprintf (stderr, "test_reqrep_device running...\n");
void *ctx = zmq_init (1);
assert (ctx);

View File

@ -20,10 +20,13 @@
*/
#include <assert.h>
#include <stdio.h>
#include "testutil.hpp"
int main (int argc, char *argv [])
{
fprintf (stderr, "test_reqrep_inproc running...\n");
void *ctx = zmq_init (0);
assert (ctx);

View File

@ -20,10 +20,13 @@
*/
#include <assert.h>
#include <stdio.h>
#include "testutil.hpp"
int main (int argc, char *argv [])
{
fprintf (stderr, "test_reqrep_ipc running...\n");
void *ctx = zmq_init (1);
assert (ctx);

View File

@ -20,10 +20,13 @@
*/
#include <assert.h>
#include <stdio.h>
#include "testutil.hpp"
int main (int argc, char *argv [])
{
fprintf (stderr, "test_reqrep_tcp running...\n");
void *ctx = zmq_init (1);
assert (ctx);

View File

@ -23,6 +23,7 @@
#include <assert.h>
#include <pthread.h>
#include <stddef.h>
#include <stdio.h>
#define THREAD_COUNT 100
@ -53,6 +54,8 @@ int main (int argc, char *argv [])
int rc;
pthread_t threads [THREAD_COUNT];
fprintf (stderr, "test_shutdown_stress running...\n");
for (j = 0; j != 10; j++) {
// Check the shutdown with many parallel I/O threads.

View File

@ -20,12 +20,15 @@
*/
#include <assert.h>
#include <stdio.h>
#include "../include/zmq.h"
#include "../include/zmq_utils.h"
int main (int argc, char *argv [])
{
fprintf (stderr, "test_sub_forward running...\n");
void *ctx = zmq_init (1);
assert (ctx);

View File

@ -22,6 +22,7 @@
#include <assert.h>
#include <string.h>
#include <pthread.h>
#include <stdio.h>
#include "../include/zmq.h"
#include "../include/zmq_utils.h"
@ -46,6 +47,8 @@ extern "C"
int main (int argc, char *argv [])
{
fprintf (stderr, "test_timeo...\n");
void *ctx = zmq_init (1);
assert (ctx);