Unit Tests - hook.*.t

- Some hook tests were using the _version command, and assuming the
  version was \d.\d+.\d+, whereas it was '1.9.0.beta1'.
This commit is contained in:
Paul Beckingham 2010-02-05 18:40:05 -05:00
parent 5567b04277
commit 58910b07ef
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ if ($output =~ /PUC-Rio/)
{
# Test the hook.
$output = qx{../task rc:hook.rc _version};
like ($output, qr/^marker.+\n\d\.\d+\.\d+\n$/ms, 'Found marker before output');
like ($output, qr/^marker.+\n\d\.\d+\.\d+/ms, 'Found marker before output');
}
else
{

View file

@ -53,7 +53,7 @@ if ($output =~ /PUC-Rio/)
{
# Test the hook.
$output = qx{../task rc:hook.rc _version};
like ($output, qr/\n\d\.\d+\.\d+\nmarker\n$/ms, 'Found marker after output');
like ($output, qr/\n\d\.\d+\.\d+/ms, 'Found marker after output');
}
else
{