From 2c0abf2dcf040e6e32612e65f04ff488745612ae Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 25 Nov 2011 16:36:40 +0100 Subject: update lib/replace to current upstream version (samba master) (This used to be ctdb commit 17bcffab19fdbb435b4745ff90c327342bbbf0f8) --- ctdb/lib/replace/test/main.c | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 ctdb/lib/replace/test/main.c (limited to 'ctdb/lib/replace/test/main.c') diff --git a/ctdb/lib/replace/test/main.c b/ctdb/lib/replace/test/main.c new file mode 100644 index 0000000000..9bd12840a5 --- /dev/null +++ b/ctdb/lib/replace/test/main.c @@ -0,0 +1,37 @@ +/* + Unix SMB/CIFS implementation. + + libreplace tests + + Copyright (C) Jelmer Vernooij 2006 + + ** NOTE! The following LGPL license applies to the talloc + ** library. This does NOT imply that all of Samba is released + ** under the LGPL + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, see . +*/ + +#include "replace.h" + +struct torture_context; +bool torture_local_replace(struct torture_context *ctx); + +int main(void) +{ + bool ret = torture_local_replace(NULL); + if (ret) + return 0; + return -1; +} -- cgit From 4c1dc871b9ebdb9a83ab7b4714d89e451ea0783a Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Wed, 29 May 2013 14:44:03 +1000 Subject: replace: Sync to latest replace from upstream The latest commits affecting lib/replace remove autoconf build from Samba tree. So using following commit as a sync point. commit 9ddfd7d8784e6f546628f48990b69ee2850be52d Author: Andrew Bartlett Date: Wed May 22 17:23:30 2013 +1000 Signed-off-by: Amitay Isaacs (This used to be ctdb commit 506b27c944b4031e8a325816bd12abddd442a0bb) --- ctdb/lib/replace/test/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ctdb/lib/replace/test/main.c') diff --git a/ctdb/lib/replace/test/main.c b/ctdb/lib/replace/test/main.c index 9bd12840a5..94264d7367 100644 --- a/ctdb/lib/replace/test/main.c +++ b/ctdb/lib/replace/test/main.c @@ -24,9 +24,7 @@ */ #include "replace.h" - -struct torture_context; -bool torture_local_replace(struct torture_context *ctx); +#include "replace-testsuite.h" int main(void) { -- cgit