From: Greg Sabino Mullane Date: Thu, 30 Apr 2009 19:50:23 +0000 (-0400) Subject: Regex fix: relation may be index, not table. X-Git-Tag: 2.9.0~41 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=6a7daabde157b513a1937bfb91fd53936f73bf7a;p=check_postgres.git Regex fix: relation may be index, not table. --- diff --git a/t/02_relation_size.t b/t/02_relation_size.t index 6adb6b4f0..add51b63f 100644 --- a/t/02_relation_size.t +++ b/t/02_relation_size.t @@ -42,11 +42,10 @@ $t = qq{$S identifies host}; like ($result, qr{host:$host}, $t); $t = qq{$S processes 'perflimit=1'}; -like ($cp->run(q{-w 1 --perflimit 1}), - qr{time=\d+\.\d{2}(?:\s+\w+\.\w+=\d+){1}\s+\Z}, $t); +like ($cp->run(q{-w 1 --perflimit 1}), qr{time=\d+\.\d\d(?:\s+(?:\w+\.)?\w+=\d+){1}\s+\Z}, $t); + $t = qq{$S processes 'perflimit=2'}; -like ($cp->run(q{-w 1 --perflimit 2}), - qr{time=\d+\.\d{2}(?:\s+\w+\.\w+=\d+){2}\s+\Z}, $t); +like ($cp->run(q{-w 1 --perflimit 2}), qr{time=\d+\.\d\d(?:\s+(?:\w+\.)?\w+=\d+){2}\s+\Z}, $t); $t = qq{$S detects no matching tables due to unknown user}; like ($cp->run(q{-w 1 --includeuser foo}), qr{$label OK:.*No matching entries found due to user exclusion/inclusion options}, $t);