diff --git a/ChangeLog b/ChangeLog index d568352ce..c7f696d48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 ------------------------------ diff --git a/test/hook.on-exit.t b/test/hook.on-exit.t index a66ba13aa..41aaa9e4e 100755 --- a/test/hook.on-exit.t +++ b/test/hook.on-exit.t @@ -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 { diff --git a/test/hook.on-launch.t b/test/hook.on-launch.t index 7624208b4..9ff942f38 100755 --- a/test/hook.on-launch.t +++ b/test/hook.on-launch.t @@ -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 {