s4:torture:vfs_fruit: skip test_adouble_conversion() without "localdir"
authorRalph Boehme <slow@samba.org>
Fri, 18 Dec 2015 16:22:32 +0000 (17:22 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 21 Dec 2015 22:21:17 +0000 (23:21 +0100)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=11347

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

index 5ecc25de1f43a454421fd456f3d0ba6e26d1f7cc..7f939c47cf2150a0fccf7a06a721769b71dc0e12 100644 (file)
@@ -1749,6 +1749,12 @@ static bool test_adouble_conversion(struct torture_context *tctx,
        bool ret = true;
        const char *data = "This resource fork intentionally left blank";
        size_t datalen = strlen(data);
+       const char *localdir = NULL;
+
+       localdir = torture_setting_string(tctx, "localdir", NULL);
+       if (localdir == NULL) {
+               torture_skip(tctx, "Need localdir for test");
+       }
 
        smb2_util_unlink(tree, fname);