s4:torture/vfs/fruit: skip a few tests when running against a macOS SMB server
authorRalph Boehme <slow@samba.org>
Fri, 19 Oct 2018 20:21:10 +0000 (22:21 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 31 Oct 2018 20:27:18 +0000 (21:27 +0100)
These tests are designed to test specific vfs_fruit functionality.

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 2eaf698c4e02a2918f2f6448a8f114696cc8212a..b15958afe075269b337431fc2082189ea1c35afa 100644 (file)
@@ -2111,6 +2111,11 @@ static bool test_adouble_conversion(struct torture_context *tctx,
                ":com.apple.metadata" "\xef\x80\xa2" "_kMDItemUserTags:$DATA",
                ":foo" "\xef\x80\xa2" "bar:$DATA", /* "foo:bar:$DATA" */
        };
+       bool is_osx = torture_setting_bool(tctx, "osx", false);
+
+       if (is_osx) {
+               torture_skip(tctx, "Test only works with Samba\n");
+       }
 
        smb2_deltree(tree, BASEDIR);
 
@@ -2185,6 +2190,11 @@ static bool test_adouble_conversion_wo_xattr(struct torture_context *tctx,
        union smb_search_data *d;
        const char *data = "This resource fork intentionally left blank";
        size_t datalen = strlen(data);
+       bool is_osx = torture_setting_bool(tctx, "osx", false);
+
+       if (is_osx) {
+               torture_skip(tctx, "Test only works with Samba\n");
+       }
 
        smb2_deltree(tree, BASEDIR);
 
@@ -4742,6 +4752,11 @@ static bool test_nfs_aces(struct torture_context *tctx,
        struct security_descriptor *psd = NULL;
        NTSTATUS status;
        bool ret = true;
+       bool is_osx = torture_setting_bool(tctx, "osx", false);
+
+       if (is_osx) {
+               torture_skip(tctx, "Test only works with Samba\n");
+       }
 
        ret = enable_aapl(tctx, tree);
        torture_assert(tctx, ret == true, "enable_aapl failed");