Code Cleanup

- More specific test (checking message either in the standard output or the
  standard error).
This commit is contained in:
Louis-Claude Canon
2012-06-16 17:20:54 +02:00
committed by Paul Beckingham
parent e5fe704f6a
commit 1e632fea66
5 changed files with 33 additions and 33 deletions

View File

@@ -43,7 +43,7 @@ if (open my $fh, '>', 'custom.rc')
}
# Generate the usage screen, and locate the custom report on it.
my $output = qx{../src/task rc:custom.rc foo 2>&1};
my $output = qx{../src/task rc:custom.rc foo 2>&1 >/dev/null};
like ($output, qr/Unrecognized column name 'foo'\.\n/, 'custom report spotted invalid column');
# Cleanup.