- Fixed bug that accepted a recurrence duration of '7' as '7secs' instead of the intended '7days'. It is now an error to omit the units. Thanks to Vlad Zhivotnev, Stanley G. - Modified unit tests to avoid a different error.
This commit is contained in:
@@ -42,9 +42,9 @@ 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:__ 2> /dev/null};
|
||||
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:__ 2>&1 >/dev/null};
|
||||
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');
|
||||
|
||||
# Check that headers are sent to standard error
|
||||
|
||||
Reference in New Issue
Block a user