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

@ -47,11 +47,11 @@ if (open my $fh, '>', 'hook')
ok (-r 'hook', 'Created hook');
}
my $output = qx{../src/task rc:hook.rc version};
my $output = qx{../src/task rc:hook.rc version 2>&1};
if ($output =~ /PUC-Rio/)
{
# Test the hook.
$output = qx{../src/task rc:hook.rc _version};
$output = qx{../src/task rc:hook.rc _version 2>&1};
like ($output, qr/^marker.+\b\w{7}\b/ms, 'Found marker before output');
}
else