From da95c16da9056c49c56ccbbe05d902efe7c3d2bc Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 29 May 2014 23:17:02 -0400 Subject: [PATCH] Unit Tests - Modified a test that relies on an obsolete message. --- test/feature.1013.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/feature.1013.t b/test/feature.1013.t index 72e99d651..6d855bf2b 100755 --- a/test/feature.1013.t +++ b/test/feature.1013.t @@ -45,10 +45,10 @@ if (open my $fh, '>', 'outerr.rc') # error # Check that errors are sent to standard error -my $stdout = qx{../src/task rc:outerr.rc add due:__ foo 2> /dev/null}; -unlike ($stdout, qr/^The duration '__' was not recognized as valid, with correct units like '3days'.$/ms, 'Errors are not sent to stdout'); -my $stderr = qx{../src/task rc:outerr.rc add due:__ bar 2>&1 >/dev/null}; -like ($stderr, qr/^The duration '__' was not recognized as valid, with correct units like '3days'.$/ms, 'Errors are sent to stderr'); +my $stdout = qx{../src/task rc:outerr.rc add 2> /dev/null}; +unlike ($stdout, qr/^Additional text must be provided\.$/ms, 'Errors are not sent to stdout'); +my $stderr = qx{../src/task rc:outerr.rc add 2>&1 >/dev/null}; +like ($stderr, qr/^Additional text must be provided\.$/ms, 'Errors are sent to stderr'); # Check that headers are sent to standard error $stdout = qx{../src/task rc:outerr.rc list 2> /dev/null};