summaryrefslogtreecommitdiff
path: root/ctdb/tests
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2017-08-09 11:09:47 +1000
committerMartin Schwenke <martins@samba.org>2017-08-30 18:55:42 +0200
commit01dd8dd768333040f1e492ac9d9f47535246f521 (patch)
tree61bcb2fa96ee282c5c3d178a593ba07752385f33 /ctdb/tests
parenta8bdcf9c65b9f440c6dccc6e0b8a42c886c4c09d (diff)
downloadsamba-01dd8dd768333040f1e492ac9d9f47535246f521.tar.gz
ctdb-tests: Drop unused test template
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
Diffstat (limited to 'ctdb/tests')
-rw-r--r--ctdb/tests/src/protocol_common.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/ctdb/tests/src/protocol_common.h b/ctdb/tests/src/protocol_common.h
index c8fa5746213..5a270328b5f 100644
--- a/ctdb/tests/src/protocol_common.h
+++ b/ctdb/tests/src/protocol_common.h
@@ -39,25 +39,6 @@
#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