mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-23 14:36:44 +02:00
Unit Tests
- Modified a test that relies on an obsolete message.
This commit is contained in:
parent
5baa999459
commit
da95c16da9
1 changed files with 4 additions and 4 deletions
|
@ -45,10 +45,10 @@ if (open my $fh, '>', 'outerr.rc')
|
||||||
# error
|
# error
|
||||||
|
|
||||||
# Check that errors are sent to standard error
|
# Check that errors are sent to standard error
|
||||||
my $stdout = qx{../src/task rc:outerr.rc add due:__ foo 2> /dev/null};
|
my $stdout = qx{../src/task rc:outerr.rc add 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');
|
unlike ($stdout, qr/^Additional text must be provided\.$/ms, 'Errors are not sent to stdout');
|
||||||
my $stderr = qx{../src/task rc:outerr.rc add due:__ bar 2>&1 >/dev/null};
|
my $stderr = qx{../src/task rc:outerr.rc add 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');
|
like ($stderr, qr/^Additional text must be provided\.$/ms, 'Errors are sent to stderr');
|
||||||
|
|
||||||
# Check that headers are sent to standard error
|
# Check that headers are sent to standard error
|
||||||
$stdout = qx{../src/task rc:outerr.rc list 2> /dev/null};
|
$stdout = qx{../src/task rc:outerr.rc list 2> /dev/null};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue