s4 torture: Warn on NOT_IMPLEMENTED in addition to NOT_SUPPORTED for RAW-QFILEINFO
authorAravind Srinivasan <aravind.srinivasan@isilon.com>
Tue, 22 Jun 2010 17:42:20 +0000 (10:42 -0700)
committerTim Prouty <tprouty@samba.org>
Thu, 24 Jun 2010 15:22:25 +0000 (08:22 -0700)
Signed-off-by: Tim Prouty <tprouty@samba.org>
source4/torture/raw/qfileinfo.c

index 12897ef499abfed2b25a44c2cf20c4cfa9e95cf1..54f1d127d365c430f5e3923307ee84ed2a498c57 100644 (file)
@@ -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));