mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-23 23:46:42 +02:00
Unit Tests
- Modified testing to accomodate new split between stdout/stderr.
This commit is contained in:
parent
75822eed47
commit
da575c4043
185 changed files with 1591 additions and 1591 deletions
|
@ -42,13 +42,13 @@ if (open my $fh, '>', 'bug.rc')
|
|||
# Feature 608: Done should stop a task
|
||||
|
||||
# Setup: Add and start a task
|
||||
qx{../src/task rc:bug.rc add Test due:3d; ../src/task rc:bug.rc 1 start};
|
||||
qx{../src/task rc:bug.rc add Test due:3d 2>&1; ../src/task rc:bug.rc 1 start 2>&1};
|
||||
|
||||
# Mark the task as completed
|
||||
qx{../src/task rc:bug.rc 1 done};
|
||||
qx{../src/task rc:bug.rc 1 done 2>&1};
|
||||
|
||||
# Check to ensure task was stopped
|
||||
my $output = qx{../src/task rc:bug.rc info 1};
|
||||
my $output = qx{../src/task rc:bug.rc info 1 2>&1};
|
||||
like ($output, qr/End set to/ms, 'Done command also stops started task.');
|
||||
|
||||
# Cleanup.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue