Unit Tests
- Fixed hook tests to work on released code (thanks to Jakub Wilk).
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user