Browse Source

Updating test to support Windows file descriptor count (-1)

Chris Earle 11 years ago
parent
commit
04926954e2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      rest-api-spec/test/cat.nodes/10_basic.yaml

+ 2 - 1
rest-api-spec/test/cat.nodes/10_basic.yaml

@@ -34,6 +34,7 @@
           v: true
 
   - match:
+      # Windows reports -1 for the file descriptor counts.
       $body: |
                /^      file_desc\.current  \s+  file_desc\.percent  \s+  file_desc\.max  \s+ \n
-                  (\s+ \d+                 \s+  \d+                 \s+  \d+             \s+ \n)+  $/
+                  (\s+ (-1|\d+)            \s+  \d+                 \s+  (-1|\d+)        \s+ \n)+  $/