ctdb-tests: Drop unused test template
authorAmitay Isaacs <amitay@gmail.com>
Wed, 9 Aug 2017 01:09:47 +0000 (11:09 +1000)
committerMartin Schwenke <martins@samba.org>
Wed, 30 Aug 2017 16:55:42 +0000 (18:55 +0200)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Wed Aug 30 18:55:42 CEST 2017 on sn-devel-144

ctdb/tests/src/protocol_common.h

index c8fa5746213e93d68c1a3e76fcc6fd6812689e80..5a270328b5fe64d9f53ad5e2855eb6131f558143 100644 (file)
 #define PUSH_FUNC(NAME)                NAME## _push
 #define PULL_FUNC(NAME)                NAME## _pull
 
-#define DEFINE_TEST(TYPE, NAME)        \
-static void TEST_FUNC(NAME)(void) \
-{ \
-       TALLOC_CTX *mem_ctx = talloc_new(NULL); \
-       TYPE *p1, *p2; \
-       size_t buflen; \
-       int ret; \
-\
-       p1 = talloc_zero(mem_ctx, TYPE); \
-       assert(p1 != NULL); \
-       FILL_FUNC(NAME)(p1, p1); \
-       buflen = LEN_FUNC(NAME)(p1); \
-       PUSH_FUNC(NAME)(p1, BUFFER); \
-       ret = PULL_FUNC(NAME)(BUFFER, buflen, mem_ctx, &p2); \
-       assert(ret == 0); \
-       VERIFY_FUNC(NAME)(p1, p2); \
-       talloc_free(mem_ctx); \
-}
-
 /*
  * Test for basic data types that do not need memory allocation
  * For example - int32_t, uint32_t, uint64_t