s4:torture:vfs_fruit: fix model name check
authorRalph Boehme <slow@samba.org>
Wed, 7 Jan 2015 21:47:13 +0000 (22:47 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 8 Jan 2015 14:31:44 +0000 (15:31 +0100)
Don't abort when the model string is not "Samba", simply log it.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Jan  8 15:31:44 CET 2015 on sn-devel-104

source4/torture/vfs/fruit.c

index 5d4a411f5936027f149afb06d76a462f526de0f4..162885e4f585028d9070d26a57224ad7f5bafb52 100644 (file)
@@ -1501,13 +1501,7 @@ static bool test_aapl(struct torture_context *tctx,
                               __location__);
                goto done;
        }
-       if (strncmp(model, "Samba", 5) != 0) {
-               torture_result(tctx, TORTURE_FAIL,
-                              "(%s) expected model \"Samba\", got: \"%s\"",
-                              __location__, model);
-               ret = false;
-               goto done;
-       }
+       torture_comment(tctx, "Got server model: \"%s\"\n", model);
 
        /*
         * Now that Requested AAPL extensions are enabled, setup some