Fix the local-memcache test for 64-bit
authorVolker Lendecke <vl@samba.org>
Thu, 5 Jan 2012 12:12:26 +0000 (13:12 +0100)
committerVolker Lendecke <vlendec@samba.org>
Thu, 5 Jan 2012 21:01:00 +0000 (22:01 +0100)
The memcache test walks the purge functionality. The maximum memcache size also
takes all memcache internal headers into account. Those headers contain
pointers, so on 64-bit they take more space...

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Jan  5 22:01:00 CET 2012 on sn-devel-104

selftest/knownfail
source3/torture/torture.c

index 220df1c232881cf7dafef8504ad20f494b62d20d..4a9f99e8cd61ec3f439227ddfd17b34e7346aaa3 100644 (file)
@@ -6,7 +6,6 @@
 
 ^samba3.blackbox.failure.failure # this is designed to fail, for testing our test infrastructure
 .*driver.add_driver_timestamps # we only can store dates, not timestamps
-^samba3.smbtorture_s3.LOCAL-MEMCACHE #fails
 ^samba3.smbtorture_s3.LOCAL-TALLOC-DICT #fails
 ^samba3.posix_s3.nbt.dgram.*netlogon2
 ^samba3.*rap.sam.*.useradd # Not provided by Samba 3
index 8535333a284635ed7bd339f3ae777c11907bf1a1..8bc9cefeef9e317d0506104fc8ee0d089a3eca1b 100644 (file)
@@ -8314,7 +8314,7 @@ static bool run_local_memcache(int dummy)
        size_t size1, size2;
        bool ret = false;
 
-       cache = memcache_init(NULL, 100);
+       cache = memcache_init(NULL, sizeof(void *) == 8 ? 200 : 100);
 
        if (cache == NULL) {
                printf("memcache_init failed\n");