Fix lib/replace
authorMartin Schwenke <martin@meltin.net>
Thu, 10 Nov 2011 04:07:55 +0000 (15:07 +1100)
committerMartin Schwenke <martin@meltin.net>
Fri, 11 Nov 2011 03:29:36 +0000 (14:29 +1100)
commit8b6f898ee908fe1e54ef260883a76c8a0ecbda72
treecbbeeaeb180bc8b781201e079b87bec77f6b5524
parent85a4024651ca843124364f5251967bc721f07af8
Fix lib/replace

Warnings are generated when compiling strptime.c.  Why is it being
compiled on Linux?  strptime(3) has been in glibc for 15 years!

It turns out that some of the test fragments were being looked for in
lib/replace/test/ and some in lib/replace/tests/.  In addition,
test*/strptime.c was missing.

Move the tests to lib/replace/test/ for consistency with upstream
(Samba) and copy in test/strptime.c from Samba.  Tweak repdir.m4 to
handle the directory rename.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit aaf1ddfc83cf2ede29288baf04a1aa1c69a5cab5)
ctdb/lib/replace/repdir.m4
ctdb/lib/replace/test/os2_delete.c [moved from ctdb/lib/replace/tests/os2_delete.c with 100% similarity]
ctdb/lib/replace/test/shared_mmap.c [moved from ctdb/lib/replace/tests/shared_mmap.c with 100% similarity]
ctdb/lib/replace/test/strptime.c [new file with mode: 0644]
ctdb/lib/replace/test/testsuite.c [moved from ctdb/lib/replace/tests/testsuite.c with 100% similarity]