summaryrefslogtreecommitdiff
path: root/tests/reconnect.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.cpm>2012-02-16 10:06:30 +0900
committerMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:06:30 +0900
commitfb1209c72bbfd431b61fa4588785586d24ef67c9 (patch)
tree6c33ac55809c64e57e44b347879fe297e894be5e /tests/reconnect.cpp
parent0d384b7944c20f3389c2be9363afac99783d776a (diff)
More MSVC tests added
Signed-off-by: Martin Sustrik <sustrik@250bpm.cpm>
Diffstat (limited to 'tests/reconnect.cpp')
-rw-r--r--tests/reconnect.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/tests/reconnect.cpp b/tests/reconnect.cpp
index 09eefd4..0e38f08 100644
--- a/tests/reconnect.cpp
+++ b/tests/reconnect.cpp
@@ -20,13 +20,6 @@
#include "testutil.hpp"
-#if defined XS_HAVE_WINDOWS
-int XS_TEST_MAIN ()
-{
- return 0;
-}
-#else
-
int XS_TEST_MAIN ()
{
fprintf (stderr, "reconnect test running...\n");
@@ -68,7 +61,7 @@ int XS_TEST_MAIN ()
assert (push);
// Connect before bind was done at the peer and send one message.
- rc = xs_connect (push, "ipc:///tmp/tester");
+ rc = xs_connect (push, "tcp://127.0.0.1:5560");
assert (rc == 0);
rc = xs_send (push, "ABC", 3, 0);
assert (rc == 3);
@@ -77,7 +70,7 @@ int XS_TEST_MAIN ()
xs_sleep (1);
// Bind the peer and get the message.
- rc = xs_bind (pull, "ipc:///tmp/tester");
+ rc = xs_bind (pull, "tcp://127.0.0.1:5560");
assert (rc == 0);
rc = xs_recv (pull, buf, sizeof (buf), 0);
assert (rc == 3);
@@ -92,5 +85,3 @@ int XS_TEST_MAIN ()
return 0 ;
}
-
-#endif \ No newline at end of file