Unit Tests
- Fixed hook tests to work on released code (thanks to Jakub Wilk).
This commit is contained in:
@@ -117,6 +117,7 @@ Bugs
|
|||||||
(thanks to Rainer Müller).
|
(thanks to Rainer Müller).
|
||||||
+ Fixed a bug where the terminal title was tried to be set without a tty
|
+ Fixed a bug where the terminal title was tried to be set without a tty
|
||||||
(thanks to Rainer Müller).
|
(thanks to Rainer Müller).
|
||||||
|
+ Fixed hook tests to work on released code (thanks to Jakub Wilk).
|
||||||
|
|
||||||
------ old releases ------------------------------
|
------ old releases ------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ if ($output =~ /PUC-Rio/)
|
|||||||
{
|
{
|
||||||
# Test the hook.
|
# Test the hook.
|
||||||
$output = qx{../src/task rc:hook.rc _version 2>&1};
|
$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
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ if ($output =~ /PUC-Rio/)
|
|||||||
{
|
{
|
||||||
# Test the hook.
|
# Test the hook.
|
||||||
$output = qx{../src/task rc:hook.rc _version 2>&1};
|
$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
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user