summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-07-10 17:36:18 +0200
committerVolker Lendecke <vl@samba.org>2009-07-10 18:16:46 +0200
commit3969f65aaa1c0e5d3158f089a2fe496af6dd60b0 (patch)
tree439b1ad4dfc0e7cb82e51df31fc770f368371aee /source3
parent0a0bff353e3cd8287166c7ed907a50a8599b0e03 (diff)
downloadsamba-3969f65aaa1c0e5d3158f089a2fe496af6dd60b0.tar.gz
samba-3969f65aaa1c0e5d3158f089a2fe496af6dd60b0.tar.bz2
samba-3969f65aaa1c0e5d3158f089a2fe496af6dd60b0.zip
Fix&Run local-gencache
Diffstat (limited to 'source3')
-rwxr-xr-xsource3/script/tests/test_smbtorture_s3.sh2
-rw-r--r--source3/torture/torture.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/source3/script/tests/test_smbtorture_s3.sh b/source3/script/tests/test_smbtorture_s3.sh
index 4301081cec..2894d7e90a 100755
--- a/source3/script/tests/test_smbtorture_s3.sh
+++ b/source3/script/tests/test_smbtorture_s3.sh
@@ -29,7 +29,7 @@ tests="$tests DIR DIR1 TCON TCONDEV RW1 RW2 RW3"
tests="$tests OPEN XCOPY RENAME DELETE PROPERTIES W2K"
tests="$tests TCON2 IOCTL CHKPATH FDSESS LOCAL-SUBSTITUTE CHAIN1"
tests="$tests GETADDRINFO POSIX UID-REGRESSION-TEST SHORTNAME-TEST"
-tests="$tests LOCAL-BASE64"
+tests="$tests LOCAL-BASE64 LOCAL-GENCACHE"
skipped1="RANDOMIPC NEGNOWAIT NBENCH ERRMAPEXTRACT TRANS2SCAN NTTRANSSCAN"
skipped2="DENY1 DENY2 OPENATTR CASETABLE EATEST"
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 15083ef90d..8e38093e33 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -5829,15 +5829,13 @@ static bool run_local_gencache(int dummy)
}
blob = data_blob_string_const_null("bar");
- tm = time(NULL);
+ tm = time(NULL) + 60;
if (!gencache_set_data_blob("foo", &blob, tm)) {
d_printf("%s: gencache_set_data_blob() failed\n", __location__);
return False;
}
- data_blob_free(&blob);
-
if (!gencache_get_data_blob("foo", &blob, NULL)) {
d_printf("%s: gencache_get_data_blob() failed\n", __location__);
return False;