2 Unix SMB/CIFS implementation.
6 Copyright (C) Jelmer Vernooij 2006
8 ** NOTE! The following LGPL license applies to the talloc
9 ** library. This does NOT imply that all of Samba is released
12 This library is free software; you can redistribute it and/or
13 modify it under the terms of the GNU Lesser General Public
14 License as published by the Free Software Foundation; either
15 version 2 of the License, or (at your option) any later version.
17 This library is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 Lesser General Public License for more details.
22 You should have received a copy of the GNU Lesser General Public
23 License along with this library; if not, write to the Free Software
24 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 #include "../replace.h"
188 /* FIXME: test dlopen, dlsym, dlclose, dlerror */
195 /* FIXME: chroot() */
289 /* FIXME: test __FUNCTION__ macro */
305 int torture_local_replace()
309 ret &= test_ftruncate();
310 ret &= test_strlcpy();
311 ret &= test_strlcat();
312 ret &= test_mktime();
313 ret &= test_rename();
314 ret &= test_innetgr();
315 ret &= test_initgroups();
316 ret &= test_memmove();
317 ret &= test_strdup();
318 ret &= test_setlinebuf();
319 ret &= test_vsyslog();
320 ret &= test_timegm();
321 ret &= test_setenv();
322 ret &= test_strndup();
323 ret &= test_strnlen();
324 ret &= test_waitpid();
325 ret &= test_seteuid();
326 ret &= test_setegid();
327 ret &= test_asprintf();
328 ret &= test_snprintf();
329 ret &= test_vasprintf();
330 ret &= test_vsnprintf();
331 ret &= test_opendir();
332 ret &= test_readdir() ;
333 ret &= test_telldir();
334 ret &= test_seekdir();
335 ret &= test_dlopen();
336 ret &= test_chroot();
338 ret &= test_strerror();
340 ret &= test_mkdtemp();
341 ret &= test_mkstemp();
343 ret &= test_pwrite();
344 ret &= test_getpass();
345 ret &= test_inet_ntoa();
346 ret &= test_strtoll();
347 ret &= test_strtoll();
348 ret &= test_strtoull();
349 ret &= test_va_copy();
350 ret &= test_FUNCTION();
357 #if !defined(_SAMBA_BUILD_) || ((SAMBA_VERSION_MAJOR==3)&&(SAMBA_VERSION_MINOR<9))
360 if (!torture_local_replace(NULL)) {
361 printf("ERROR: TESTSUITE FAILED\n");