axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billblo...@apache.org
Subject svn commit: r1831005 - in /axis/axis2/c/core/trunk/guththila/tests: test_attribute.cc test_guththila.cc
Date Sat, 05 May 2018 20:49:26 GMT
Author: billblough
Date: Sat May  5 20:49:26 2018
New Revision: 1831005

URL: http://svn.apache.org/viewvc?rev=1831005&view=rev
Log:
Replace calloc with AXIS2_MALLOC in guththila tests

Modified:
    axis/axis2/c/core/trunk/guththila/tests/test_attribute.cc
    axis/axis2/c/core/trunk/guththila/tests/test_guththila.cc

Modified: axis/axis2/c/core/trunk/guththila/tests/test_attribute.cc
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/guththila/tests/test_attribute.cc?rev=1831005&r1=1831004&r2=1831005&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/guththila/tests/test_attribute.cc (original)
+++ axis/axis2/c/core/trunk/guththila/tests/test_attribute.cc Sat May  5 20:49:26 2018
@@ -18,8 +18,6 @@
 #include <gtest/gtest.h>
 
 #include <guththila.h>
-#include <axiom.h>
-
 
 #define BUF_SIZE 256
 
@@ -34,7 +32,7 @@ class TestAttribute: public ::testing::T
             m_env = axutil_env_create(m_allocator);
             ASSERT_NE(m_env, nullptr);
 
-            m_parser = (guththila_t*) calloc(1, sizeof(guththila_t));
+            m_parser = (guththila_t*) AXIS2_MALLOC(m_allocator, sizeof(guththila_t));
             ASSERT_NE(m_parser, nullptr);
 
             memset(m_buffer, 0, BUF_SIZE);

Modified: axis/axis2/c/core/trunk/guththila/tests/test_guththila.cc
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/guththila/tests/test_guththila.cc?rev=1831005&r1=1831004&r2=1831005&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/guththila/tests/test_guththila.cc (original)
+++ axis/axis2/c/core/trunk/guththila/tests/test_guththila.cc Sat May  5 20:49:26 2018
@@ -18,7 +18,7 @@
 #include <gtest/gtest.h>
 
 #include <guththila.h>
-#include "guththila_defines.h"
+#include <guththila_defines.h>
 
 #define BUF_SIZE 256
 
@@ -33,7 +33,7 @@ class TestGuththila: public ::testing::T
             m_env = axutil_env_create(m_allocator);
             ASSERT_NE(m_env, nullptr);
 
-            m_parser = (guththila_t*) calloc(1, sizeof(guththila_t));
+            m_parser = (guththila_t*) AXIS2_MALLOC(m_allocator, sizeof(guththila_t));
             ASSERT_NE(m_parser, nullptr);
 
             memset(m_buffer, 0, BUF_SIZE);



Mime
View raw message