diff options
author | Michael Adam <obnox@samba.org> | 2015-03-19 12:47:53 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2015-03-19 18:02:13 +0100 |
commit | a4f7bc5e39707174007aad901ef095ffb30acf53 (patch) | |
tree | c5b7ef665d8796250982ea7931d0900e8c024a73 /source3/torture | |
parent | bf14864e269cdbce98142984552f154e03e79e3e (diff) | |
download | samba-a4f7bc5e39707174007aad901ef095ffb30acf53.tar.gz |
s3:torture: add samba3.smbtorture_s3.LOCAL-MESSAGING-FDPASS2a test.
This variant of the fdpass2 test tests the non-queuing fast path
by sending a message with only a very small payload.
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/proto.h | 1 | ||||
-rw-r--r-- | source3/torture/test_messaging_fd_passing.c | 9 | ||||
-rw-r--r-- | source3/torture/torture.c | 1 |
3 files changed, 11 insertions, 0 deletions
diff --git a/source3/torture/proto.h b/source3/torture/proto.h index b12c8bed2af..19e515e1911 100644 --- a/source3/torture/proto.h +++ b/source3/torture/proto.h @@ -119,6 +119,7 @@ bool run_messaging_read3(int dummy); bool run_messaging_read4(int dummy); bool run_messaging_fdpass1(int dummy); bool run_messaging_fdpass2(int dummy); +bool run_messaging_fdpass2a(int dummy); bool run_oplock_cancel(int dummy); #endif /* __TORTURE_H__ */ diff --git a/source3/torture/test_messaging_fd_passing.c b/source3/torture/test_messaging_fd_passing.c index fec7b2dbe6a..fde5c15e630 100644 --- a/source3/torture/test_messaging_fd_passing.c +++ b/source3/torture/test_messaging_fd_passing.c @@ -377,3 +377,12 @@ bool run_messaging_fdpass2(int dummy) { return run_messaging_fdpass2_int(dummy, 1000*1000); } + +/** + * Variant of the FDPASS2 test that tests the non-queuing fast path + * with a small payload. + */ +bool run_messaging_fdpass2a(int dummy) +{ + return run_messaging_fdpass2_int(dummy, 1); +} diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 4b957af3fc9..1a0adba98ff 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -9605,6 +9605,7 @@ static struct { { "LOCAL-MESSAGING-READ4", run_messaging_read4, 0 }, { "LOCAL-MESSAGING-FDPASS1", run_messaging_fdpass1, 0 }, { "LOCAL-MESSAGING-FDPASS2", run_messaging_fdpass2, 0 }, + { "LOCAL-MESSAGING-FDPASS2a", run_messaging_fdpass2a, 0 }, { "LOCAL-BASE64", run_local_base64, 0}, { "LOCAL-RBTREE", run_local_rbtree, 0}, { "LOCAL-MEMCACHE", run_local_memcache, 0}, |