summaryrefslogtreecommitdiffstats
path: root/lib/replace/test
Commit message (Collapse)AuthorAgeFilesLines
* lib: Fix CID 1034840 Resource leakVolker Lendecke2015-03-101-0/+5
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* lib: Fix CID 1034839 Resource leakVolker Lendecke2015-03-101-0/+7
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* lib: Fix CID 1034838 Resource leakVolker Lendecke2015-03-101-0/+1
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* libreplace: Fix CID 1034926 Destination buffer too smallVolker Lendecke2015-03-101-1/+2
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* replace: Remove unused item returned by FAILED()Martin Schwenke2014-08-201-1/+1
| | | | | | | | | | | | | | | | | | The (return) value of FAILED() is a constant 1. However, it is never used, so the compiler complains when run with -Wall: lib/replace/test/os2_delete.c: In function ‘cleanup’: lib/replace/test/os2_delete.c:39:163: warning: right-hand operand of comma expression has no effect [-Wunused-value] FAILED("system"); So just get remove the ", 1" since it is the bit that does nothing and is never used. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Wed Aug 20 16:54:31 CEST 2014 on sn-devel-104
* Bug 8997: change libreplace GPL source to LGPLDavid Disseldorp2013-06-031-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | libreplace currently includes socket.c and getifaddrs.c both of which are GPL licensed. Although not required, talloc and tdb build alongside this source, leading to some ambiguity regarding their LGPL licences. The following copyright holders have agreed to the GPL->LGPL change: lib/replace/getifaddrs.c Copyright (C) Andrew Tridgell 1998 Copyright (C) Jeremy Allison 2007 Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2007 lib/replace/test/getifaddrs.c lib/replace/socket.c * Copyright (C) Michael Adam <obnox@samba.org> 2008 Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Jun 3 18:06:18 CEST 2013 on sn-devel-104
* replace: Remove deprecated getpass() support.Andreas Schneider2012-12-031-7/+0
| | | | Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
* lib/replace: Try to fix build on HP-UX for os2_delete testAndrew Bartlett2012-09-232-7/+3
| | | | | | | | | | | | The issue is that this file is both used in an autoconf test, and later in a smbtorture test. Because os2_delete.c does not include replace.h, bool may not be defined. So, instead we shift the need for bool to a different header. (The readdir tests in repdir.m4 are not yet in the waf configure). Andrew Bartlett
* lib/replace: test for incoherent mmap.Rusty Russell2012-03-221-0/+83
| | | | | | | We test for other mmap features here, and both tdb1 and tdb2 want this check. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* replace: Check if we have mremap() availableSimo Sorce2011-08-141-0/+48
|
* lib/replace/test: Add missing include for prototype.Jelmer Vernooij2011-03-191-0/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 19 16:45:56 CET 2011 on sn-devel-104
* libreplace: Fix prototypes for all functions.Jelmer Vernooij2011-03-193-1/+5
|
* lib/replace/testsuite.c - fix test outputMatthias Dieter Wallnöfer2010-12-231-1/+1
|
* lib/replace: use snprintf() in test code to avoid warnings in the IBM-CheckerStefan Metzmacher2010-10-231-2/+2
| | | | metze
* lib/replace: fix some c++ build warnings in testsuite.Günther Deschner2010-06-011-4/+4
| | | | Guenther
* s4-waf: test/simple.c is not needed any moreAndrew Tridgell2010-04-061-8/+0
|
* build: check if a simple C program runsAndrew Tridgell2010-04-061-0/+8
| | | | This will be helpful for working out why AIX is failing
* build: added interface checking and nicer snprintf checkingAndrew Tridgell2010-04-061-0/+29
| | | | use CHECK_CODE()
* replace: allow memmem() with an empty string to return NULLAndrew Tridgell2010-03-301-1/+3
| | | | | This is how FreeBSD behaves. We don't rely on it returning the string in Samba.
* Change uint_t to unsigned int in lib/replaceMatt Kraai2010-02-021-1/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* libreplace: some systems don't have memmem()Andrew Tridgell2010-01-021-0/+37
| | | | added rep_memmem() and a testsuite
* Cope with the fact that only _mkdir() exists on Windows and that itJelmer Vernooij2009-04-201-0/+4
| | | | doesn't take a mode argument.
* Fix warnings in make test code.Jeremy Allison2009-01-021-2/+6
| | | | Jeremy.
* libreplace: move main() out of testsuite.cStefan Metzmacher2008-09-222-11/+37
| | | | metze
* Fix standalone builds adjusting to new relative path.Simo Sorce2008-09-191-1/+2
| | | | | | Add shared-build target to libreplace. Useful to build multiple standalone libraries that depend on each other without having to install them to the final install dir during the build.
* Move common libraries from root to lib/.Jelmer Vernooij2008-09-175-0/+1544