diff --git a/src/tests/hook.post-start.t b/src/tests/hook.post-start.t index 5c4427473..0b1f37a32 100755 --- a/src/tests/hook.post-start.t +++ b/src/tests/hook.post-start.t @@ -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 { diff --git a/src/tests/hook.pre-exit.t b/src/tests/hook.pre-exit.t index 45f97ec90..ea6d19380 100755 --- a/src/tests/hook.pre-exit.t +++ b/src/tests/hook.pre-exit.t @@ -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 {