summaryrefslogtreecommitdiff
path: root/source4/lib/torture
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-12 19:46:38 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-12 19:46:38 +0200
commit3994c42f1938e35218cd5708fcc5a22b1b9a761d (patch)
tree7a4cbbe898abee8bbebb8a355be709415547beff /source4/lib/torture
parent99fba0ca69516e571d88ecaea3937f1f73287cf3 (diff)
downloadsamba-3994c42f1938e35218cd5708fcc5a22b1b9a761d.tar.gz
samba-3994c42f1938e35218cd5708fcc5a22b1b9a761d.tar.bz2
samba-3994c42f1938e35218cd5708fcc5a22b1b9a761d.zip
Fix number of arguments for file_load() functions.
Diffstat (limited to 'source4/lib/torture')
-rw-r--r--source4/lib/torture/torture.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/torture/torture.h b/source4/lib/torture/torture.h
index f023f319ff..0f966a52d1 100644
--- a/source4/lib/torture/torture.h
+++ b/source4/lib/torture/torture.h
@@ -267,7 +267,7 @@ void torture_result(struct torture_context *test,
char *__got; \
const char *__expected = (expected); \
size_t __size; \
- __got = file_load(filename, &__size, torture_ctx); \
+ __got = file_load(filename, &__size, 0, torture_ctx); \
if (__got == NULL) { \
torture_result(torture_ctx, TORTURE_FAIL, \
__location__": unable to open %s: %s\n", \
@@ -288,7 +288,7 @@ void torture_result(struct torture_context *test,
#define torture_assert_file_contains(torture_ctx,filename,expected,cmt)\
do { const char *__got, *__expected = (expected); \
size_t __size; \
- __got = file_load(filename, *size, torture_ctx); \
+ __got = file_load(filename, *size, 0, torture_ctx); \
if (strcmp_safe(__got, __expected) != 0) { \
torture_result(torture_ctx, TORTURE_FAIL, \
__location__": %s contained:\n%sExpected: %s%s\n", \