torture/raw Allow one more 'not implemented' status return as a valid response
authorAndrew Bartlett <abartlet@samba.org>
Thu, 16 Sep 2010 07:53:36 +0000 (17:53 +1000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 16 Sep 2010 11:09:17 +0000 (21:09 +1000)
The Samba4 server responds to most ioctl calls with NT_STATUS_NOT_SUPPORTED

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
source4/torture/raw/ioctl.c

index 99dc039a7f4b18d6e2fa32f8447d3e77b8b0fb51..7692af9ca9d1bca7323f405ac19d5ab2a097b621 100644 (file)
@@ -112,7 +112,8 @@ static bool test_fsctl(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
        nt.ntioctl.in.blob.data[1] = 15+1;
        status = smb_raw_ioctl(cli->tree, mem_ctx, &nt);
        if (!NT_STATUS_EQUAL(status, NT_STATUS_INVALID_PARAMETER) &&
-           !NT_STATUS_EQUAL(status, NT_STATUS_NOT_IMPLEMENTED)) {
+           !NT_STATUS_EQUAL(status, NT_STATUS_NOT_IMPLEMENTED) &&
+           !NT_STATUS_EQUAL(status, NT_STATUS_NOT_SUPPORTED)) {
                printf("Got unexpected error code: %s\n",
                        nt_errstr(status));
                ret = false;