From: Stefan Metzmacher Date: Tue, 8 Dec 2020 14:47:53 +0000 (+0100) Subject: s4:torture/fruit: avoid sleep(10000000); if write_stream() fails X-Git-Tag: samba-4.14.0rc1~139 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9b2559c4208d680d43fa39823b2d5eb048bcf19;p=thirdparty%2Fsamba.git s4:torture/fruit: avoid sleep(10000000); if write_stream() fails Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source4/torture/vfs/fruit.c b/source4/torture/vfs/fruit.c index 113f4792092..e819d1fbb34 100644 --- a/source4/torture/vfs/fruit.c +++ b/source4/torture/vfs/fruit.c @@ -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; } }