summaryrefslogtreecommitdiff
path: root/ACE/tests/Svc_Handler_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/tests/Svc_Handler_Test.cpp')
-rw-r--r--ACE/tests/Svc_Handler_Test.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/ACE/tests/Svc_Handler_Test.cpp b/ACE/tests/Svc_Handler_Test.cpp
index 7c7358c3e45..cfe2f2f5561 100644
--- a/ACE/tests/Svc_Handler_Test.cpp
+++ b/ACE/tests/Svc_Handler_Test.cpp
@@ -87,13 +87,19 @@ run_main (int argc, ACE_TCHAR *argv[])
ACE_FILE_Connector connector;
ACE_FILE_IO file_io;
// Create a temporary filename.
- ACE_FILE_Addr file (ACE_sap_any_cast (ACE_FILE_Addr &));
- // Open up the temp file.
- if (connector.connect (file_io, file) == -1)
+ // Open up a temp file.
+ if (connector.connect (file_io, ACE_sap_any_cast (ACE_FILE_Addr &)) == -1)
ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("connect failed for %p\n"),
- file.get_path_name ()),
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("connect")),
+ 1);
+ // Find the name of the temp file
+ ACE_FILE_Addr file;
+ if (file_io.get_local_addr (file) == -1)
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_TEXT ("%p\n"),
+ ACE_TEXT ("get_local_addr")),
1);
// Create the service handler and assign it <file_io> as its data