@@ -943,42 +943,6 @@ static void test_talloc_typed_memdup(void)
943943 talloc_free (ctx );
944944}
945945
946- /*
947- * talloc_buffer_append_buffer - concatenate talloc strings
948- */
949- static void test_talloc_buffer_append_buffer (void )
950- {
951- TALLOC_CTX * ctx ;
952- char * a , * result ;
953-
954- ctx = talloc_init_const ("test" );
955-
956- TEST_CASE ("Concatenate two talloc strings" );
957- a = talloc_strdup (ctx , "hello " );
958- {
959- char * b = talloc_strdup (ctx , "world" );
960- result = talloc_buffer_append_buffer (ctx , a , b );
961- TEST_ASSERT (result != NULL );
962- TEST_CHECK (strcmp (result , "hello world" ) == 0 );
963- talloc_free (b );
964- }
965-
966- TEST_CASE ("NULL first arg returns NULL" );
967- {
968- char * b = talloc_strdup (ctx , "test" );
969- result = talloc_buffer_append_buffer (ctx , NULL , b );
970- TEST_CHECK (result == NULL );
971- talloc_free (b );
972- }
973-
974- TEST_CASE ("NULL second arg returns NULL" );
975- a = talloc_strdup (ctx , "hello" );
976- result = talloc_buffer_append_buffer (ctx , a , NULL );
977- TEST_CHECK (result == NULL );
978-
979- talloc_free (ctx );
980- }
981-
982946/*
983947 * talloc_array_null_terminate / talloc_array_null_strip
984948 */
@@ -1269,7 +1233,6 @@ TEST_LIST = {
12691233 { "talloc_memcmp_array" , test_talloc_memcmp_array },
12701234 { "talloc_memcmp_bstr" , test_talloc_memcmp_bstr },
12711235 { "talloc_typed_memdup" , test_talloc_typed_memdup },
1272- { "talloc_buffer_append_buffer" , test_talloc_buffer_append_buffer },
12731236 { "talloc_array_null_terminate" , test_talloc_array_null_terminate },
12741237 { "talloc_destructor_add" , test_talloc_destructor_add },
12751238 { "talloc_link_ctx" , test_talloc_link_ctx },
0 commit comments