summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorGregor Beck <gbeck@sernet.de>2012-03-02 12:05:59 +0100
committerStefan Metzmacher <metze@samba.org>2012-03-06 23:53:07 +0100
commit59f818d80b4cdf4f67b653d3754e4eebe279915b (patch)
treece620d0dbde285cd3866d650c4e873d4b8d98b4f /source4
parentaf6555d2a9f3b09238aa2e9a924f08aabe9d6090 (diff)
downloadsamba-59f818d80b4cdf4f67b653d3754e4eebe279915b.tar.gz
samba-59f818d80b4cdf4f67b653d3754e4eebe279915b.tar.bz2
samba-59f818d80b4cdf4f67b653d3754e4eebe279915b.zip
s4:torture: print ntstatus on failure of setup complex file in smb2 setinfo/getinfo scan
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/smb2/scan.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source4/torture/smb2/scan.c b/source4/torture/smb2/scan.c
index c16dd3aff1..92fbc682c4 100644
--- a/source4/torture/smb2/scan.c
+++ b/source4/torture/smb2/scan.c
@@ -51,14 +51,16 @@ bool torture_smb2_getinfo_scan(struct torture_context *torture)
status = torture_setup_complex_file(tree, FNAME);
if (!NT_STATUS_IS_OK(status)) {
- printf("Failed to setup complex file '%s'\n", FNAME);
+ printf("Failed to setup complex file '%s': %s\n",
+ FNAME, nt_errstr(status));
return false;
}
torture_setup_complex_file(tree, FNAME2);
status = torture_setup_complex_dir(tree, DNAME);
if (!NT_STATUS_IS_OK(status)) {
- printf("Failed to setup complex dir '%s'\n", DNAME);
+ printf("Failed to setup complex dir '%s': %s\n",
+ DNAME, nt_errstr(status));
smb2_util_unlink(tree, FNAME);
return false;
}
@@ -123,7 +125,8 @@ bool torture_smb2_setinfo_scan(struct torture_context *torture)
status = torture_setup_complex_file(tree, FNAME);
if (!NT_STATUS_IS_OK(status)) {
- printf("Failed to setup complex file '%s'\n", FNAME);
+ printf("Failed to setup complex file '%s': %s\n",
+ FNAME, nt_errstr(status));
return false;
}
torture_setup_complex_file(tree, FNAME2);