summaryrefslogtreecommitdiff
path: root/tests/IOStream_Test.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-02 16:29:08 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-02 16:29:08 +0000
commitf4c7858fb4df977e425de4a6f73dc76e07c57640 (patch)
treea9a3861de1acf0d2ca18e167a60c4533f5f11d11 /tests/IOStream_Test.cpp
parent1be14fc9054bb80f4af1643d3011619290b5a978 (diff)
downloadATCD-f4c7858fb4df977e425de4a6f73dc76e07c57640.tar.gz
no longer need to dynamically allocate the ACE_SOCK_IOStreams with the recent ACE_Thread_Manager changes
Diffstat (limited to 'tests/IOStream_Test.cpp')
-rw-r--r--tests/IOStream_Test.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/tests/IOStream_Test.cpp b/tests/IOStream_Test.cpp
index 0f722adac75..14d0010906f 100644
--- a/tests/IOStream_Test.cpp
+++ b/tests/IOStream_Test.cpp
@@ -159,9 +159,7 @@ client (void *arg = 0)
// e.g., g++ 2.7.2.1 and Sun C++ 4.2 on Solaris 2.5.1. (It does
// work on Linux, so the code seems fine.) If we manage the storage
// ourselves, we _will_ destroy it at the end of this function.
- ACE_SOCK_IOStream *server_p;
- ACE_NEW_RETURN (server_p, ACE_SOCK_IOStream, 0);
- ACE_SOCK_IOStream &server = *server_p;
+ ACE_SOCK_IOStream server;
ACE_INET_Addr *remote_addr = (ACE_INET_Addr *) arg;
ACE_INET_Addr addr (remote_addr->get_port_number (),
@@ -232,8 +230,6 @@ client (void *arg = 0)
// Shut down the test.
server.close ();
- delete server_p;
-
return 0;
}
@@ -250,9 +246,7 @@ server (void *arg = 0)
// g++ 2.7.2.1 and Sun C++ 4.2 on Solaris 2.5.1. (It does work on
// Linux, so the code seems fine.) If we manage the
// storage ourselves, we _will_ destroy it at the end of this function.
- ACE_SOCK_IOStream *client_handler_p;
- ACE_NEW_RETURN (client_handler_p, ACE_SOCK_IOStream, 0);
- ACE_SOCK_IOStream &client_handler = *client_handler_p;
+ ACE_SOCK_IOStream client_handler;
ACE_INET_Addr server_addr;
ACE_SOCK_Acceptor *acceptor = (ACE_SOCK_Acceptor *) arg;
@@ -333,11 +327,9 @@ server (void *arg = 0)
// check for proper received values
ACE_ASSERT (i == -1 && (f1 >= -0.13 && f1 <= -0.11)
-v && l == -666555444 && (f2 >= -24.0 && f2 <= -22.0)
+ && l == -666555444 && (f2 >= -24.0 && f2 <= -22.0)
&& (d >= -45e+9 && d <= 47e+9));
- delete client_handler_p;
-
return 0;
}