Unit Tests

- Modified testing to accomodate new split between stdout/stderr.
This commit is contained in:
Paul Beckingham 2012-07-03 15:43:19 -04:00
parent 75822eed47
commit da575c4043
185 changed files with 1591 additions and 1591 deletions

View file

@ -42,10 +42,10 @@ if (open my $fh, '>', 'bug.rc')
# Bug 634: confirmation=off not honored by undo
# Setup: Add a task
qx{../src/task rc:bug.rc add Test};
qx{../src/task rc:bug.rc add Test 2>&1};
# Result: Attempt to undo add with confirmation=off
my $output = qx{echo 'n' |../src/task rc:bug.rc rc.confirmation=off undo};
my $output = qx{echo 'n' |../src/task rc:bug.rc rc.confirmation=off undo 2>&1};
unlike ($output, qr/Are you sure/ms, 'Undo honours confirmation=off.');
# Cleanup.