diff --git a/test/hook.post-start.t b/test/hook.post-start.t index 0b56ffaf1..d425e3158 100755 --- a/test/hook.post-start.t +++ b/test/hook.post-start.t @@ -52,7 +52,7 @@ if ($output =~ /PUC-Rio/) { # Test the hook. $output = qx{../src/task rc:hook.rc _version}; - like ($output, qr/^marker.+\n\d\.\d+\.\d+/ms, 'Found marker before output'); + like ($output, qr/^marker.+\n\w{7}/ms, 'Found marker before output'); } else { diff --git a/test/hook.pre-exit.t b/test/hook.pre-exit.t index f74f5f93f..67796e89b 100755 --- a/test/hook.pre-exit.t +++ b/test/hook.pre-exit.t @@ -53,7 +53,7 @@ if ($output =~ /PUC-Rio/) { # Test the hook. $output = qx{../src/task rc:hook.rc _version}; - like ($output, qr/\n\d\.\d+\.\d+/ms, 'Found marker after output'); + like ($output, qr/\n\w{7}/ms, 'Found marker after output'); } else {