Commit 75635189 authored by Martin Sustrik's avatar Martin Sustrik

Tests print their name before running

This makes finding out which test have hung-up easier.
Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
parent 7842c710
...@@ -21,11 +21,14 @@ ...@@ -21,11 +21,14 @@
#include <assert.h> #include <assert.h>
#include <stdio.h>
#include "testutil.hpp" #include "testutil.hpp"
int main (int argc, char *argv []) int main (int argc, char *argv [])
{ {
fprintf (stderr, "test_hwm running...\n");
void *ctx = zmq_init (1); void *ctx = zmq_init (1);
assert (ctx); assert (ctx);
......
...@@ -22,9 +22,12 @@ ...@@ -22,9 +22,12 @@
#include "../include/zmq.h" #include "../include/zmq.h"
#include <assert.h> #include <assert.h>
#include <stdio.h>
int main (int argc, char *argv []) int main (int argc, char *argv [])
{ {
fprintf (stderr, "test_pair_inproc running...\n");
// Create REQ/XREP wiring. // Create REQ/XREP wiring.
void *ctx = zmq_init (1); void *ctx = zmq_init (1);
assert (ctx); assert (ctx);
......
...@@ -20,10 +20,13 @@ ...@@ -20,10 +20,13 @@
*/ */
#include <assert.h> #include <assert.h>
#include <stdio.h>
#include "testutil.hpp" #include "testutil.hpp"
int main (int argc, char *argv []) int main (int argc, char *argv [])
{ {
fprintf (stderr, "test_pair_inproc running...\n");
void *ctx = zmq_init (0); void *ctx = zmq_init (0);
assert (ctx); assert (ctx);
......
...@@ -20,10 +20,13 @@ ...@@ -20,10 +20,13 @@
*/ */
#include <assert.h> #include <assert.h>
#include <stdio.h>
#include "testutil.hpp" #include "testutil.hpp"
int main (int argc, char *argv []) int main (int argc, char *argv [])
{ {
fprintf (stderr, "test_pair_ipc running...\n");
void *ctx = zmq_init (1); void *ctx = zmq_init (1);
assert (ctx); assert (ctx);
......
...@@ -20,10 +20,13 @@ ...@@ -20,10 +20,13 @@
*/ */
#include <assert.h> #include <assert.h>
#include <stdio.h>
#include "testutil.hpp" #include "testutil.hpp"
int main (int argc, char *argv []) int main (int argc, char *argv [])
{ {
fprintf (stderr, "test_pair_tcp running...\n");
void *ctx = zmq_init (1); void *ctx = zmq_init (1);
assert (ctx); assert (ctx);
......
...@@ -22,11 +22,14 @@ ...@@ -22,11 +22,14 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include <stdio.h>
#include "../include/zmq.h" #include "../include/zmq.h"
int main (int argc, char *argv []) int main (int argc, char *argv [])
{ {
fprintf (stderr, "test_reqrep_device running...\n");
void *ctx = zmq_init (1); void *ctx = zmq_init (1);
assert (ctx); assert (ctx);
......
...@@ -20,10 +20,13 @@ ...@@ -20,10 +20,13 @@
*/ */
#include <assert.h> #include <assert.h>
#include <stdio.h>
#include "testutil.hpp" #include "testutil.hpp"
int main (int argc, char *argv []) int main (int argc, char *argv [])
{ {
fprintf (stderr, "test_reqrep_inproc running...\n");
void *ctx = zmq_init (0); void *ctx = zmq_init (0);
assert (ctx); assert (ctx);
......
...@@ -20,10 +20,13 @@ ...@@ -20,10 +20,13 @@
*/ */
#include <assert.h> #include <assert.h>
#include <stdio.h>
#include "testutil.hpp" #include "testutil.hpp"
int main (int argc, char *argv []) int main (int argc, char *argv [])
{ {
fprintf (stderr, "test_reqrep_ipc running...\n");
void *ctx = zmq_init (1); void *ctx = zmq_init (1);
assert (ctx); assert (ctx);
......
...@@ -20,10 +20,13 @@ ...@@ -20,10 +20,13 @@
*/ */
#include <assert.h> #include <assert.h>
#include <stdio.h>
#include "testutil.hpp" #include "testutil.hpp"
int main (int argc, char *argv []) int main (int argc, char *argv [])
{ {
fprintf (stderr, "test_reqrep_tcp running...\n");
void *ctx = zmq_init (1); void *ctx = zmq_init (1);
assert (ctx); assert (ctx);
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <assert.h> #include <assert.h>
#include <pthread.h> #include <pthread.h>
#include <stddef.h> #include <stddef.h>
#include <stdio.h>
#define THREAD_COUNT 100 #define THREAD_COUNT 100
...@@ -53,6 +54,8 @@ int main (int argc, char *argv []) ...@@ -53,6 +54,8 @@ int main (int argc, char *argv [])
int rc; int rc;
pthread_t threads [THREAD_COUNT]; pthread_t threads [THREAD_COUNT];
fprintf (stderr, "test_shutdown_stress running...\n");
for (j = 0; j != 10; j++) { for (j = 0; j != 10; j++) {
// Check the shutdown with many parallel I/O threads. // Check the shutdown with many parallel I/O threads.
......
...@@ -20,12 +20,15 @@ ...@@ -20,12 +20,15 @@
*/ */
#include <assert.h> #include <assert.h>
#include <stdio.h>
#include "../include/zmq.h" #include "../include/zmq.h"
#include "../include/zmq_utils.h" #include "../include/zmq_utils.h"
int main (int argc, char *argv []) int main (int argc, char *argv [])
{ {
fprintf (stderr, "test_sub_forward running...\n");
void *ctx = zmq_init (1); void *ctx = zmq_init (1);
assert (ctx); assert (ctx);
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include <pthread.h> #include <pthread.h>
#include <stdio.h>
#include "../include/zmq.h" #include "../include/zmq.h"
#include "../include/zmq_utils.h" #include "../include/zmq_utils.h"
...@@ -46,6 +47,8 @@ extern "C" ...@@ -46,6 +47,8 @@ extern "C"
int main (int argc, char *argv []) int main (int argc, char *argv [])
{ {
fprintf (stderr, "test_timeo...\n");
void *ctx = zmq_init (1); void *ctx = zmq_init (1);
assert (ctx); assert (ctx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment