From 58910b07efade90a90b44489114155fb7a195150 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 5 Feb 2010 18:40:05 -0500 Subject: [PATCH] Unit Tests - hook.*.t - Some hook tests were using the _version command, and assuming the version was \d.\d+.\d+, whereas it was '1.9.0.beta1'. --- src/tests/hook.post-start.t | 2 +- src/tests/hook.pre-exit.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {