diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-26 08:41:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:04:46 -0500 |
commit | 4db039c3f33ff4119ced156f23786b1bcb73b5fd (patch) | |
tree | bc8390dc0002271230df337bf6ddd590ca39c8b6 /source4/torture/raw/ioctl.c | |
parent | 7f60959e64c4281e02fd11fbcce2d15f43da1892 (diff) | |
download | samba-4db039c3f33ff4119ced156f23786b1bcb73b5fd.tar.gz samba-4db039c3f33ff4119ced156f23786b1bcb73b5fd.tar.xz samba-4db039c3f33ff4119ced156f23786b1bcb73b5fd.zip |
r3254: - expanded the RAW-IOCTL test
- fixed the old ioctl interface to not check handle before failing
- pvs now passes RAW-IOCTL
(This used to be commit 98f6dbdba46c907039951559ec5f526410fd0039)
Diffstat (limited to 'source4/torture/raw/ioctl.c')
-rw-r--r-- | source4/torture/raw/ioctl.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/torture/raw/ioctl.c b/source4/torture/raw/ioctl.c index f7ce954c941..d433eaa637a 100644 --- a/source4/torture/raw/ioctl.c +++ b/source4/torture/raw/ioctl.c @@ -50,6 +50,14 @@ static BOOL test_ioctl(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) goto done; } + printf("Trying 0xFFFF\n"); + ctl.ioctl.level = RAW_IOCTL_IOCTL; + ctl.ioctl.in.fnum = fnum; + ctl.ioctl.in.request = 0xFFFF; + + status = smb_raw_ioctl(cli->tree, mem_ctx, &ctl); + CHECK_STATUS(status, NT_STATUS_UNSUCCESSFUL); + printf("Trying QUERY_JOB_INFO\n"); ctl.ioctl.level = RAW_IOCTL_IOCTL; ctl.ioctl.in.fnum = fnum; |