From 7e49a58ab9a66a709ee2a15d40db7c59bf55cbac Mon Sep 17 00:00:00 2001 From: Aravind Srinivasan Date: Tue, 22 Jun 2010 10:42:20 -0700 Subject: s4 torture: Warn on NOT_IMPLEMENTED in addition to NOT_SUPPORTED for RAW-QFILEINFO Signed-off-by: Tim Prouty --- source4/torture/raw/qfileinfo.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'source4') diff --git a/source4/torture/raw/qfileinfo.c b/source4/torture/raw/qfileinfo.c index 12897ef499..54f1d127d3 100644 --- a/source4/torture/raw/qfileinfo.c +++ b/source4/torture/raw/qfileinfo.c @@ -278,8 +278,10 @@ static bool torture_raw_qfileinfo_internals(struct torture_context *torture, count++; } if (!levels[i].only_paths && + (NT_STATUS_EQUAL(levels[i].fnum_status, + NT_STATUS_NOT_SUPPORTED) || NT_STATUS_EQUAL(levels[i].fnum_status, - NT_STATUS_NOT_SUPPORTED)) { + NT_STATUS_NOT_IMPLEMENTED))) { torture_warning(torture, "fnum level %s %s", levels[i].name, nt_errstr(levels[i].fnum_status)); @@ -293,8 +295,10 @@ static bool torture_raw_qfileinfo_internals(struct torture_context *torture, } } else { if (!levels[i].only_paths && + (NT_STATUS_EQUAL(levels[i].fnum_status, + NT_STATUS_NOT_SUPPORTED) || NT_STATUS_EQUAL(levels[i].fnum_status, - NT_STATUS_NOT_SUPPORTED)) { + NT_STATUS_NOT_IMPLEMENTED))) { torture_warning(torture, "fnum level %s %s", levels[i].name, nt_errstr(levels[i].fnum_status)); @@ -302,8 +306,10 @@ static bool torture_raw_qfileinfo_internals(struct torture_context *torture, } if (!levels[i].only_handles && + (NT_STATUS_EQUAL(levels[i].fname_status, + NT_STATUS_NOT_SUPPORTED) || NT_STATUS_EQUAL(levels[i].fname_status, - NT_STATUS_NOT_SUPPORTED)) { + NT_STATUS_NOT_IMPLEMENTED))) { torture_warning(torture, "fname level %s %s", levels[i].name, nt_errstr(levels[i].fname_status)); -- cgit