]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture/fruit: avoid sleep(10000000); if write_stream() fails
authorStefan Metzmacher <metze@samba.org>
Tue, 8 Dec 2020 14:47:53 +0000 (15:47 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 8 Jan 2021 20:31:33 +0000 (20:31 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/vfs/fruit.c

index 113f4792092d454d7f87ff1e50f21a2bc6b0ff8b..e819d1fbb3436a2fcf8ad47a6e770c772874d813 100644 (file)
@@ -1962,9 +1962,8 @@ static bool write_stream(struct smb2_tree *tree,
                if (value == NULL) {
                        return true;
                } else {
-                       torture_comment(tctx, "Unable to open stream %s\n",
-                           full_name);
-                       sleep(10000000);
+                       torture_comment(tctx, "Unable to open stream %s: %s\n",
+                           full_name, nt_errstr(status));
                        return false;
                }
        }