Unit Tests

- Fixed hook tests to work on released code (thanks to Jakub Wilk).
This commit is contained in:
Paul Beckingham
2013-03-09 17:05:34 -05:00
parent a40f424dad
commit a790cce6f6
3 changed files with 3 additions and 2 deletions

View File

@@ -117,6 +117,7 @@ Bugs
(thanks to Rainer Müller).
+ Fixed a bug where the terminal title was tried to be set without a tty
(thanks to Rainer Müller).
+ Fixed hook tests to work on released code (thanks to Jakub Wilk).
------ old releases ------------------------------

View File

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

View File

@@ -52,7 +52,7 @@ if ($output =~ /PUC-Rio/)
{
# Test the hook.
$output = qx{../src/task rc:hook.rc _version 2>&1};
like ($output, qr/^marker.+\b\w{7}\b/ms, 'Found marker before output');
like ($output, qr/^marker.+\b(\w{7}|[\d.]+)\b/ms, 'Found marker before output');
}
else
{