diff options
author | Steve Huston <shuston@riverace.com> | 2014-10-10 21:58:31 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2014-10-10 21:58:31 +0000 |
commit | ad906bbed19a4e2e35a3adb429de6cb678217aec (patch) | |
tree | dc3bbf6d52c1dd3b1f89607aec46d33c94e7b2a6 /ACE/tests/Svc_Handler_Test.cpp | |
parent | 8cb211430ac1af0f738444209565ca9aa2840a62 (diff) | |
download | ATCD-ad906bbed19a4e2e35a3adb429de6cb678217aec.tar.gz |
ChangeLogTag:Thu Oct 9 16:21:38 UTC 2014 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ACE/tests/Svc_Handler_Test.cpp')
-rw-r--r-- | ACE/tests/Svc_Handler_Test.cpp | 16 |
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 |