summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-02-01 00:25:25 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-02-01 00:25:25 +0000
commitdb7b4ad3c63d16562d3a259e8dd4ace92aeacf87 (patch)
treebf0c509196240908dbea64ddda89f0b025b09648
parentffae0803cf0fb9432d80d1198ea5c34ae1b745f8 (diff)
downloadATCD-db7b4ad3c63d16562d3a259e8dd4ace92aeacf87.tar.gz
*** empty log message ***
-rw-r--r--tests/CDR_Test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/CDR_Test.cpp b/tests/CDR_Test.cpp
index 138b6ad4fed..966166a6a0d 100644
--- a/tests/CDR_Test.cpp
+++ b/tests/CDR_Test.cpp
@@ -20,6 +20,7 @@
#include "test_config.h"
#include "ace/Get_Opt.h"
+#include "ace/Auto_ptr.h"
#include "ace/CDR.h"
#if defined(__BORLANDC__) && __BORLANDC__ >= 0x0530
@@ -169,12 +170,12 @@ test_get (ACE_InputCDR &cdr, const CDR_Test_Types &test_types)
"read_string2[%d] failed\n",
i),
1);
- if (ACE_OS::strcmp (xstr, test_types.str) != 0)
+ auto_ptr<CDR::Char> auto_xstr (xstr);
+ if (ACE_OS::strcmp (auto_xstr.get (), test_types.str) != 0)
ACE_ERROR_RETURN ((LM_ERROR,
"string[%d] differs\n",
i),
1);
- delete [] xstr;
}
return 0;
}