summaryrefslogtreecommitdiff
path: root/selftest
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2018-10-28 19:29:26 +0100
committerKarolin Seeger <kseeger@samba.org>2018-11-06 09:10:22 +0100
commit86a115caacd63a70bfa9480481a4770d2da20b22 (patch)
tree89bf9bd642a842091e095eed68e0f2e036c03376 /selftest
parent27fb50fd22deaabc70e2951574c532fb827e3c02 (diff)
downloadsamba-86a115caacd63a70bfa9480481a4770d2da20b22.tar.gz
s4:torture/smb2/read: add test for cancelling SMB aio
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13667 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit e37ff8c5fe18d400e378bf2591e209b30473d9f9)
Diffstat (limited to 'selftest')
-rw-r--r--selftest/knownfail.d/samba3.smb21
-rwxr-xr-xselftest/target/Samba3.pm6
2 files changed, 7 insertions, 0 deletions
diff --git a/selftest/knownfail.d/samba3.smb2 b/selftest/knownfail.d/samba3.smb2
new file mode 100644
index 00000000000..f4e2ecf3da4
--- /dev/null
+++ b/selftest/knownfail.d/samba3.smb2
@@ -0,0 +1 @@
+^samba3.smb2.aio_delay.aio_cancel\(nt4_dc\)
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm
index 173d799558c..968c6aa7ba0 100755
--- a/selftest/target/Samba3.pm
+++ b/selftest/target/Samba3.pm
@@ -2225,6 +2225,12 @@ sub provision($$$$$$$$$)
kernel oplocks = no
posix locking = no
include = $libdir/delay_inject.conf
+
+[aio_delay_inject]
+ copy = tmp
+ vfs objects = delay_inject
+ delay_inject:pread_send = 2000
+ delay_inject:pwrite_send = 2000
";
close(CONF);