From bb89e1a70f14202e5b98f7fb95bce78e1c578b52 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 8 Nov 2009 12:51:57 -0500 Subject: [PATCH] Unit Tests - annotate.t - Fixed bug in annotate.t, where a custom report named 'r' was used in the unit tests. This name had to be lengthened to 'rrr' to avoid conflict with the 'recurring' report. This, in itself, is a different bug. --- src/tests/annotate.t | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/tests/annotate.t b/src/tests/annotate.t index 209dc5ec9..0fcd1e784 100755 --- a/src/tests/annotate.t +++ b/src/tests/annotate.t @@ -33,10 +33,12 @@ use Test::More tests => 9; # Create the rc file. if (open my $fh, '>', 'annotate.rc') { + # Note: Use 'rrr' to guarantee a unique report name. Using 'r' conflicts + # with 'recurring'. print $fh "data.location=.\n", - "report.r.description=r\n", - "report.r.columns=id,description\n", - "report.r.sort=id+\n"; + "report.rrr.description=rrr\n", + "report.rrr.columns=id,description\n", + "report.rrr.sort=id+\n"; close $fh; ok (-r 'annotate.rc', 'Created annotate.rc'); } @@ -47,7 +49,7 @@ qx{../task rc:annotate.rc add two}; qx{../task rc:annotate.rc annotate 1 foo}; sleep 2; qx{../task rc:annotate.rc annotate 1 bar}; -my $output = qx{../task rc:annotate.rc r}; +my $output = qx{../task rc:annotate.rc rrr}; # ID Description # -- -------------------------------