diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-18 22:30:29 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-19 05:38:06 +0200 |
commit | 40cf08823dadb7f2f9cb3b32c2e64b6242522ef4 (patch) | |
tree | 92ae2284e9c3c7277b9b724a7cd828d76f982716 /lib/ntdb/test/run-remap-in-read_traverse.c | |
parent | 3bccb610c166df1ce2ea5c8a80daa451bd6edf67 (diff) | |
download | samba-40cf08823dadb7f2f9cb3b32c2e64b6242522ef4.tar.gz samba-40cf08823dadb7f2f9cb3b32c2e64b6242522ef4.tar.bz2 samba-40cf08823dadb7f2f9cb3b32c2e64b6242522ef4.zip |
ntdb: enhance external-helper test code.
Our external test helper is a bit primitive when it comes to doing STORE or
FETCH commands: let us specify the data we expect, instead of assuming it's
the same as the key.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/ntdb/test/run-remap-in-read_traverse.c')
-rw-r--r-- | lib/ntdb/test/run-remap-in-read_traverse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ntdb/test/run-remap-in-read_traverse.c b/lib/ntdb/test/run-remap-in-read_traverse.c index 2d817c2d73..0e963fc5b1 100644 --- a/lib/ntdb/test/run-remap-in-read_traverse.c +++ b/lib/ntdb/test/run-remap-in-read_traverse.c @@ -18,8 +18,8 @@ static unsigned add_records_to_grow(struct agent *agent, int fd, ntdb_len_t size unsigned int i; for (i = 0; !file_larger(fd, size); i++) { - char data[20]; - sprintf(data, "%i", i); + char data[50]; + sprintf(data, "%i=%i", i, i); if (external_agent_operation(agent, STORE, data) != SUCCESS) return 0; } |