Unit Tests

- All tests (I hope) now properly remove completed.data on exit, which
  should prevent certain non-deterministic tinderbox results caused by
  residual data.
This commit is contained in:
Paul Beckingham
2010-08-08 13:00:05 -04:00
parent 5b8dbd8ff1
commit 98042548dd
115 changed files with 453 additions and 114 deletions

View File

@@ -28,7 +28,7 @@
use strict;
use warnings;
use Test::More tests => 50;
use Test::More tests => 51;
# Create the rc file.
if (open my $fh, '>', 'annotate.rc')
@@ -148,13 +148,17 @@ like ($output, qr/4 tasks/, 'count');
unlink 'pending.data';
ok (!-r 'pending.data', 'Removed pending.data');
unlink 'completed.data';
ok (!-r 'completed.data', 'Removed completed.data');
unlink 'undo.data';
ok (!-r 'undo.data', 'Removed undo.data');
unlink 'annotate.rc';
ok (!-r 'annotate.rc', 'Removed annotate.rc');
unlink 'annotate2.rc';
ok (!-r 'annotatei2.rc', 'Removed annotate2.rc');
ok (!-r 'annotate2.rc', 'Removed annotate2.rc');
exit 0;