]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture/vfs/fruit: update test "SMB2/CREATE context AAPL" to work against macOS
authorRalph Boehme <slow@samba.org>
Mon, 15 Oct 2018 13:31:21 +0000 (15:31 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 31 Oct 2018 20:27:18 +0000 (21:27 +0100)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13646

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/vfs/fruit.c

index d067a9c97e20b365e7a988b022d15bd5d1d8e153..0e463a7e451891d06b4df3b03798cd18dda563de 100644 (file)
@@ -2306,6 +2306,7 @@ static bool test_aapl(struct torture_context *tctx,
        uint32_t aapl_reply_bitmap;
        uint32_t aapl_server_caps;
        uint32_t aapl_vol_caps;
+       uint32_t expected_vol_caps = 0;
        char *model;
        struct smb2_find f;
        unsigned int count;
@@ -2424,8 +2425,11 @@ static bool test_aapl(struct torture_context *tctx,
                goto done;
        }
 
+       if (is_osx_server) {
+               expected_vol_caps = 5;
+       }
        aapl_vol_caps = BVAL(aapl->data.data, 24);
-       if (aapl_vol_caps != 0) {
+       if (aapl_vol_caps != expected_vol_caps) {
                /* this will fail on a case insensitive fs ... */
                torture_result(tctx, TORTURE_FAIL,
                                "(%s) unexpected vol_caps: %d",