From c1cf2b743dad6e390b2d9683eef87f39afa0e785 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 16 Oct 2011 01:02:19 -0400 Subject: [PATCH] Unit Tests - Fixed several test files that were reporting an incorrect test count. --- test/bug.440.t | 2 +- test/due.t | 2 +- test/hook.on-launch.t | 22 ---------------------- test/recur.t | 2 +- 4 files changed, 3 insertions(+), 25 deletions(-) diff --git a/test/bug.440.t b/test/bug.440.t index 2207eea03..24e82305d 100755 --- a/test/bug.440.t +++ b/test/bug.440.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 5; +use Test::More tests => 6; # Create the rc file. if (open my $fh, '>', '440.rc') diff --git a/test/due.t b/test/due.t index a5c4b52c9..fcbe29efb 100755 --- a/test/due.t +++ b/test/due.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 5; +use Test::More tests => 6; # Create the rc file. if (open my $fh, '>', 'due.rc') diff --git a/test/hook.on-launch.t b/test/hook.on-launch.t index 6ca7f16f3..4a26c0e25 100755 --- a/test/hook.on-launch.t +++ b/test/hook.on-launch.t @@ -59,28 +59,6 @@ else pass ('Found marker before output - skip: no Lua support'); } -# Cleanup. -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 'backlog.data'; -ok (!-r 'backlog.data', 'Removed backlog.data'); - -unlink 'synch.key'; -ok (!-r 'synch.key', 'Removed synch.key'); - -unlink 'hook'; -ok (!-r 'hook', 'Removed hook'); - -unlink 'hook.rc'; -ok (!-r 'hook.rc', 'Removed hook.rc'); - # Cleanup. unlink qw(pending.data completed.data undo.data backlog.data synch.key hook hook.rc); ok (! -r 'pending.data' && diff --git a/test/recur.t b/test/recur.t index 02ac6a1a3..a01207b24 100755 --- a/test/recur.t +++ b/test/recur.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 4; +use Test::More tests => 5; # Create the rc file. if (open my $fh, '>', 'recur.rc')