summaryrefslogtreecommitdiff
path: root/source3/torture/test_messaging_fd_passing.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2015-03-19 12:47:53 +0100
committerMichael Adam <obnox@samba.org>2015-03-19 18:02:13 +0100
commita4f7bc5e39707174007aad901ef095ffb30acf53 (patch)
treec5b7ef665d8796250982ea7931d0900e8c024a73 /source3/torture/test_messaging_fd_passing.c
parentbf14864e269cdbce98142984552f154e03e79e3e (diff)
downloadsamba-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/test_messaging_fd_passing.c')
-rw-r--r--source3/torture/test_messaging_fd_passing.c9
1 files changed, 9 insertions, 0 deletions
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);
+}