diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-11-12 02:55:01 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-11-12 02:55:01 +0000 |
commit | 16a0d1a13d39606b1323969e7b8f32203c00ea72 (patch) | |
tree | 278fb17cfc8786fc383c3ae66addbad3f6381196 /examples | |
parent | 5fb278d476fde6d9636df2646779de7177d4d2b9 (diff) | |
download | ATCD-16a0d1a13d39606b1323969e7b8f32203c00ea72.tar.gz |
ChangeLogTag:Thu Nov 11 20:54:25 1999 Ossama Othman <othman@cs.wustl.edu>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Configuration/config_test.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/examples/Configuration/config_test.cpp b/examples/Configuration/config_test.cpp index 8e60735a3c5..7486a265485 100644 --- a/examples/Configuration/config_test.cpp +++ b/examples/Configuration/config_test.cpp @@ -269,8 +269,9 @@ main (int, char *[]) int result = test (&RegConfig); if (result) { - ACE_DEBUG ((LM_ERROR, "Win32 registry test failed (%d)\n", result)); - return -1; + ACE_ERROR_RETURN ((LM_ERROR, + "Win32 registry test failed (%d)\n", result), + -1); } } @@ -286,30 +287,29 @@ main (int, char *[]) int result = test (&heap_config); if (result) { - ACE_DEBUG ((LM_ERROR, - "Heap Configuration test failed (%d)\n", result)); - return -1; + ACE_ERROR_RETURN ((LM_ERROR, + "Heap Configuration test failed (%d)\n", result), + -1); } } // Test persistent heap version unlink ("test.reg"); - ACE_Configuration_Heap* pers_config = new ACE_Configuration_Heap; - if (pers_config->open ("test.reg")) + ACE_Configuration_Heap pers_config; + if (pers_config.open ("test.reg")) { return 0; } { - int result = test (pers_config); + int result = test (&pers_config); if (result) { - ACE_DEBUG ((LM_ERROR, - "Persistent Heap Configuration test failed (%d)\n", - result)); - return -1; + ACE_ERROR_RETURN ((LM_ERROR, + "Persistent Heap Configuration test failed (%d)\n", + result), + -1); } } - delete pers_config; // Test file i/o using a transient heap ACE_Configuration_Heap io_config; |