From e796d7a2f19c0f96cd3e649f4ddf25f2a7b40a19 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 28 Aug 2012 14:36:21 +0200 Subject: [PATCH] Unit Tests - Fixed syntax error in test. - Fixed tests that were broken, but did not detect that. --- test/bug.1065.t | 2 +- test/bug.956.t | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/bug.1065.t b/test/bug.1065.t index c1cd2429a..5f25f1abd 100755 --- a/test/bug.1065.t +++ b/test/bug.1065.t @@ -55,7 +55,7 @@ ok ($? == 0, 'Exit status check'); unlike ($output, qr/Some of your .taskrc variables differ/, 'Message is not shown when no non-default matches in pattern'); # Bug 1065 - CmdShow should not display the unrecognized message if no non-default in matched elements. -my $output = qx{../src/task rc:bug.rc show notrecog 2>&1}; +$output = qx{../src/task rc:bug.rc show notrecog 2>&1}; ok ($? == 0, 'Exit status check'); like ($output, qr/Your .taskrc file contains these unrecognized variables:/, 'Message is shown when unrecognized matches in pattern'); diff --git a/test/bug.956.t b/test/bug.956.t index 0b2300407..1bc5e01fa 100755 --- a/test/bug.956.t +++ b/test/bug.956.t @@ -43,10 +43,10 @@ if (open my $fh, '>', 'bug.rc') qx{../src/task rc:bug.rc add test 2>&1}; -my $output = qx{TASKRC=bug.rc ../src/task rc:bug.rc ids}; +my $output = qx{TASKRC=bug.rc ../src/task rc:bug.rc ids 2>&1}; unlike ($output, qr/TASKRC/ms, 'The header does not appear with "ids"'); -$output = qx{TASKRC=bug.rc ../src/task uuids}; +$output = qx{TASKRC=bug.rc ../src/task uuids 2>&1}; unlike ($output, qr/TASKRC/ms, 'The header does not appear with "uuids"'); $output = qx{TASKRC=bug.rc ../src/task _ids 2>&1};