summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-11-01 13:54:28 +0100
committerMartin Sustrik <sustrik@250bpm.com>2011-11-01 13:54:28 +0100
commit7563518929573fc9e729c1dc8bb4aea512fada5a (patch)
tree3af7f4b54762f3ecd3e3c8661e648efe64fc7eb5 /tests
parent7842c7107358324e8c5b9af7272e6dcab8c97931 (diff)
Tests print their name before running
This makes finding out which test have hung-up easier. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_hwm.cpp3
-rw-r--r--tests/test_invalid_rep.cpp3
-rw-r--r--tests/test_pair_inproc.cpp3
-rw-r--r--tests/test_pair_ipc.cpp3
-rw-r--r--tests/test_pair_tcp.cpp3
-rw-r--r--tests/test_reqrep_device.cpp3
-rw-r--r--tests/test_reqrep_inproc.cpp3
-rw-r--r--tests/test_reqrep_ipc.cpp3
-rw-r--r--tests/test_reqrep_tcp.cpp3
-rw-r--r--tests/test_shutdown_stress.cpp3
-rw-r--r--tests/test_sub_forward.cpp3
-rw-r--r--tests/test_timeo.cpp3
12 files changed, 36 insertions, 0 deletions
diff --git a/tests/test_hwm.cpp b/tests/test_hwm.cpp
index 4f6f8c6..eff06fa 100644
--- a/tests/test_hwm.cpp
+++ b/tests/test_hwm.cpp
@@ -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);
diff --git a/tests/test_invalid_rep.cpp b/tests/test_invalid_rep.cpp
index f158b05..2cab713 100644
--- a/tests/test_invalid_rep.cpp
+++ b/tests/test_invalid_rep.cpp
@@ -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);
diff --git a/tests/test_pair_inproc.cpp b/tests/test_pair_inproc.cpp
index 8323fe8..8b54f68 100644
--- a/tests/test_pair_inproc.cpp
+++ b/tests/test_pair_inproc.cpp
@@ -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);
diff --git a/tests/test_pair_ipc.cpp b/tests/test_pair_ipc.cpp
index b836194..f0be1c6 100644
--- a/tests/test_pair_ipc.cpp
+++ b/tests/test_pair_ipc.cpp
@@ -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);
diff --git a/tests/test_pair_tcp.cpp b/tests/test_pair_tcp.cpp
index 82596c9..abd7b56 100644
--- a/tests/test_pair_tcp.cpp
+++ b/tests/test_pair_tcp.cpp
@@ -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);
diff --git a/tests/test_reqrep_device.cpp b/tests/test_reqrep_device.cpp
index 4ee7cf2..8e8eef4 100644
--- a/tests/test_reqrep_device.cpp
+++ b/tests/test_reqrep_device.cpp
@@ -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);
diff --git a/tests/test_reqrep_inproc.cpp b/tests/test_reqrep_inproc.cpp
index d47f3f2..bc60381 100644
--- a/tests/test_reqrep_inproc.cpp
+++ b/tests/test_reqrep_inproc.cpp
@@ -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);
diff --git a/tests/test_reqrep_ipc.cpp b/tests/test_reqrep_ipc.cpp
index 96cff69..9644dd1 100644
--- a/tests/test_reqrep_ipc.cpp
+++ b/tests/test_reqrep_ipc.cpp
@@ -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);
diff --git a/tests/test_reqrep_tcp.cpp b/tests/test_reqrep_tcp.cpp
index 8331c22..9f1724e 100644
--- a/tests/test_reqrep_tcp.cpp
+++ b/tests/test_reqrep_tcp.cpp
@@ -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);
diff --git a/tests/test_shutdown_stress.cpp b/tests/test_shutdown_stress.cpp
index 65c5a04..a96c7f6 100644
--- a/tests/test_shutdown_stress.cpp
+++ b/tests/test_shutdown_stress.cpp
@@ -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.
diff --git a/tests/test_sub_forward.cpp b/tests/test_sub_forward.cpp
index 7ed6aa7..1a3741c 100644
--- a/tests/test_sub_forward.cpp
+++ b/tests/test_sub_forward.cpp
@@ -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);
diff --git a/tests/test_timeo.cpp b/tests/test_timeo.cpp
index 83d62cc..f17314e 100644
--- a/tests/test_timeo.cpp
+++ b/tests/test_timeo.cpp
@@ -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);