diff --git a/test/abbreviation.t b/test/abbreviation.t index de7243046..87ceb1a99 100755 --- a/test/abbreviation.t +++ b/test/abbreviation.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 21; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'abbrev.rc') { diff --git a/test/add.t b/test/add.t index c7d022f75..cbd882855 100755 --- a/test/add.t +++ b/test/add.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 9; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'add.rc') { diff --git a/test/alias.t b/test/alias.t index 9020c9349..d647bc0ee 100755 --- a/test/alias.t +++ b/test/alias.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'alias.rc') { diff --git a/test/annotate.t b/test/annotate.t index 5985bcdff..35eab5795 100755 --- a/test/annotate.t +++ b/test/annotate.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 25; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'annotate.rc') { diff --git a/test/append.t b/test/append.t index da562bbd1..3f57ce036 100755 --- a/test/append.t +++ b/test/append.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 6; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'append.rc') { diff --git a/test/args.1.t b/test/args.1.t index 585fee41c..8162a05e7 100755 --- a/test/args.1.t +++ b/test/args.1.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 8; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'args.rc') { diff --git a/test/args.2.t b/test/args.2.t index 9f1f1ee25..8c55a7580 100755 --- a/test/args.2.t +++ b/test/args.2.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 7; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'args.rc') { diff --git a/test/args.3.t b/test/args.3.t index 1dae5ee93..25fbedfb5 100755 --- a/test/args.3.t +++ b/test/args.3.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 7; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'args.rc') { diff --git a/test/args.4.t b/test/args.4.t index 466e154e4..f2d954e80 100755 --- a/test/args.4.t +++ b/test/args.4.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 7; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'args.rc') { diff --git a/test/args.5.t b/test/args.5.t index 79835d658..de109b895 100755 --- a/test/args.5.t +++ b/test/args.5.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 7; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'args.rc') { diff --git a/test/args.t b/test/args.t index a06029291..05543ecb3 100755 --- a/test/args.t +++ b/test/args.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 7; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'args.rc') { diff --git a/test/autocomplete.t.cpp b/test/autocomplete.t.cpp index 524e8dab9..1b70bde16 100644 --- a/test/autocomplete.t.cpp +++ b/test/autocomplete.t.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -38,6 +39,10 @@ int main (int argc, char** argv) { UnitTest t (8); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + std::vector options; options.push_back ("abc"); options.push_back ("abcd"); diff --git a/test/backslash.t b/test/backslash.t index ab586e87c..eef4e28b0 100755 --- a/test/backslash.t +++ b/test/backslash.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 3; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'backslash.rc') { diff --git a/test/bash_completion.t b/test/bash_completion.t index 2fa0a462a..4d836e067 100755 --- a/test/bash_completion.t +++ b/test/bash_completion.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 18; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/basic.t b/test/basic.t index 3c46924ba..931071526 100755 --- a/test/basic.t +++ b/test/basic.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 7; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'basic.rc') { diff --git a/test/bug.1006.t b/test/bug.1006.t index 6cdf26854..2baeec1d3 100755 --- a/test/bug.1006.t +++ b/test/bug.1006.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 6; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.1023.t b/test/bug.1023.t index aece0611c..25922f10b 100755 --- a/test/bug.1023.t +++ b/test/bug.1023.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 11; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.1031.t b/test/bug.1031.t index 31235cd97..6aeca5733 100755 --- a/test/bug.1031.t +++ b/test/bug.1031.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.1036.t b/test/bug.1036.t index 328a9d1d8..7ebe6ecbb 100755 --- a/test/bug.1036.t +++ b/test/bug.1036.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.1043.t b/test/bug.1043.t index 72776a33d..d2b59ff2b 100755 --- a/test/bug.1043.t +++ b/test/bug.1043.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 7; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.1044.t b/test/bug.1044.t index a8716cbed..5b2c03a3f 100755 --- a/test/bug.1044.t +++ b/test/bug.1044.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 3; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.1056.t b/test/bug.1056.t index 14b7fcdb8..4233f605f 100755 --- a/test/bug.1056.t +++ b/test/bug.1056.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 9; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.1056') { diff --git a/test/bug.1063.t b/test/bug.1063.t index 0547bb3f8..21d71c900 100755 --- a/test/bug.1063.t +++ b/test/bug.1063.t @@ -31,6 +31,10 @@ use warnings; use Test::More tests => 8; use File::Basename; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + my $ut = basename ($0); my $rc = $ut . '.rc'; diff --git a/test/bug.1065.t b/test/bug.1065.t index 2194813ea..9a3e09b69 100755 --- a/test/bug.1065.t +++ b/test/bug.1065.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 14; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.1104.t b/test/bug.1104.t index 92e4e5270..3e8009167 100755 --- a/test/bug.1104.t +++ b/test/bug.1104.t @@ -32,6 +32,10 @@ use File::Copy; use File::Path; use Test::More tests => 33; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + mkdir("1", 0755); mkdir("2", 0755); mkdir("3", 0755); diff --git a/test/bug.1110.t b/test/bug.1110.t index 384eb9a9a..bf7c522c5 100755 --- a/test/bug.1110.t +++ b/test/bug.1110.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.1117.t b/test/bug.1117.t index 5db913d7a..791ac39c4 100755 --- a/test/bug.1117.t +++ b/test/bug.1117.t @@ -32,6 +32,10 @@ use File::Copy; use File::Path; use Test::More tests => 13; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + mkdir("1", 0755); mkdir("2", 0755); mkdir("merge", 0755); diff --git a/test/bug.1192.t b/test/bug.1192.t index 50d958168..c63957b11 100755 --- a/test/bug.1192.t +++ b/test/bug.1192.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.299.t b/test/bug.299.t index 85b8d089a..03f76b7b6 100755 --- a/test/bug.299.t +++ b/test/bug.299.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.327.t b/test/bug.327.t index add46bcbb..0c005d99a 100755 --- a/test/bug.327.t +++ b/test/bug.327.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.360.t b/test/bug.360.t index 56d72127c..a1c3a3d3a 100755 --- a/test/bug.360.t +++ b/test/bug.360.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 10; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.368.t b/test/bug.368.t index 503311dc2..35b617bc7 100755 --- a/test/bug.368.t +++ b/test/bug.368.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.414.t b/test/bug.414.t index b9a1a8c20..fcc929aa3 100755 --- a/test/bug.414.t +++ b/test/bug.414.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 7; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.417.t b/test/bug.417.t index 04139e097..0f691faf1 100755 --- a/test/bug.417.t +++ b/test/bug.417.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.418.t b/test/bug.418.t index ae0635e6a..8d6c2be90 100755 --- a/test/bug.418.t +++ b/test/bug.418.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 20; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.425.t b/test/bug.425.t index a560f251e..3f28e9531 100755 --- a/test/bug.425.t +++ b/test/bug.425.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 3; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', '425.rc') { diff --git a/test/bug.434.t b/test/bug.434.t index 6955917f6..34f1a697e 100755 --- a/test/bug.434.t +++ b/test/bug.434.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 3; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.438.t b/test/bug.438.t index e9dd82b26..94c8cff3e 100755 --- a/test/bug.438.t +++ b/test/bug.438.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 8; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.440.t b/test/bug.440.t index 5688b7719..150697e6f 100755 --- a/test/bug.440.t +++ b/test/bug.440.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 6; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', '440.rc') { diff --git a/test/bug.441.t b/test/bug.441.t index c4f771801..8292b1edd 100755 --- a/test/bug.441.t +++ b/test/bug.441.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 3; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', '441.rc') { diff --git a/test/bug.455.t b/test/bug.455.t index 9e348ff39..4b263641b 100755 --- a/test/bug.455.t +++ b/test/bug.455.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', '455.rc') { diff --git a/test/bug.480.t b/test/bug.480.t index a12942022..1a7997c2a 100755 --- a/test/bug.480.t +++ b/test/bug.480.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 40; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.489.t b/test/bug.489.t index 6a9c66ca6..71a62ce55 100755 --- a/test/bug.489.t +++ b/test/bug.489.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.495.t b/test/bug.495.t index 77f3288c4..1e4255d92 100755 --- a/test/bug.495.t +++ b/test/bug.495.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 3; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.555.t b/test/bug.555.t index 1a7cda6c2..f63c3ea35 100755 --- a/test/bug.555.t +++ b/test/bug.555.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.580.t b/test/bug.580.t index 4b017b559..b305acecc 100755 --- a/test/bug.580.t +++ b/test/bug.580.t @@ -31,6 +31,10 @@ use warnings; use Test::More tests => 11; use File::Copy; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + use constant false => 0; use constant true => 1; diff --git a/test/bug.605.t b/test/bug.605.t index 8dea0d4ce..3c693a4ad 100755 --- a/test/bug.605.t +++ b/test/bug.605.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.628.t b/test/bug.628.t index d15a4e6f5..134b519c4 100755 --- a/test/bug.628.t +++ b/test/bug.628.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 3; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.634.t b/test/bug.634.t index a76937558..ea3daabd6 100755 --- a/test/bug.634.t +++ b/test/bug.634.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.635.t b/test/bug.635.t index ca2596325..fa4291530 100755 --- a/test/bug.635.t +++ b/test/bug.635.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 3; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.649.t b/test/bug.649.t index df48a454a..5fd2895c2 100755 --- a/test/bug.649.t +++ b/test/bug.649.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.656.t b/test/bug.656.t index e733ca6f0..482009653 100755 --- a/test/bug.656.t +++ b/test/bug.656.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.674.t b/test/bug.674.t index 53b87fde2..de69582f1 100755 --- a/test/bug.674.t +++ b/test/bug.674.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 3; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.694.t b/test/bug.694.t index 3f48644a8..55d3de468 100755 --- a/test/bug.694.t +++ b/test/bug.694.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.703.t b/test/bug.703.t index 5438c49b5..482c0d866 100755 --- a/test/bug.703.t +++ b/test/bug.703.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 10; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.708.t b/test/bug.708.t index ed3cda18a..6893d439a 100755 --- a/test/bug.708.t +++ b/test/bug.708.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 6; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.804.t b/test/bug.804.t index f7ccb22de..917c02386 100755 --- a/test/bug.804.t +++ b/test/bug.804.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 6; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.818.t b/test/bug.818.t index 8ceb676d6..2f89b3465 100755 --- a/test/bug.818.t +++ b/test/bug.818.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 10; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.819.t b/test/bug.819.t index aaba00c45..505ad8f99 100755 --- a/test/bug.819.t +++ b/test/bug.819.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.835.t b/test/bug.835.t index 3491390ad..345ff6416 100755 --- a/test/bug.835.t +++ b/test/bug.835.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.837.t b/test/bug.837.t index a9315975d..da43413eb 100755 --- a/test/bug.837.t +++ b/test/bug.837.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.839.t b/test/bug.839.t index 554e36a13..04f92c878 100755 --- a/test/bug.839.t +++ b/test/bug.839.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.851.t b/test/bug.851.t index c417ceb3f..7b1599bda 100755 --- a/test/bug.851.t +++ b/test/bug.851.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 8; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.856.t b/test/bug.856.t index faea54779..6d8287446 100755 --- a/test/bug.856.t +++ b/test/bug.856.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 8; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.860.t b/test/bug.860.t index b92bbdef1..3555a55ce 100755 --- a/test/bug.860.t +++ b/test/bug.860.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 3; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.879.t b/test/bug.879.t index 6c4efcd6a..5c53bdb1b 100755 --- a/test/bug.879.t +++ b/test/bug.879.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 8; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.884.t b/test/bug.884.t index 9944bb03e..e68313ed6 100755 --- a/test/bug.884.t +++ b/test/bug.884.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.886.t b/test/bug.886.t index 8eda88468..411351d32 100755 --- a/test/bug.886.t +++ b/test/bug.886.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.899.t b/test/bug.899.t index 9712d7997..d9ccaa67b 100755 --- a/test/bug.899.t +++ b/test/bug.899.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 6; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.906.t b/test/bug.906.t index f77bbf8c1..816c4b238 100755 --- a/test/bug.906.t +++ b/test/bug.906.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 17; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.917.t b/test/bug.917.t index 990f2837e..8cb4f5cf3 100755 --- a/test/bug.917.t +++ b/test/bug.917.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 6; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.924.t b/test/bug.924.t index d94ae3d47..86f27c70e 100755 --- a/test/bug.924.t +++ b/test/bug.924.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.932.t b/test/bug.932.t index 9e15613f2..68b2731fd 100755 --- a/test/bug.932.t +++ b/test/bug.932.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 12; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.954.t b/test/bug.954.t index 4043a769d..199d05de9 100755 --- a/test/bug.954.t +++ b/test/bug.954.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 6; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.955.t b/test/bug.955.t index b7b466dfa..dc0598ac2 100755 --- a/test/bug.955.t +++ b/test/bug.955.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.956.t b/test/bug.956.t index 1962461fd..00d0ec8e3 100755 --- a/test/bug.956.t +++ b/test/bug.956.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 14; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.972.t b/test/bug.972.t index 78e980621..7aee3403b 100755 --- a/test/bug.972.t +++ b/test/bug.972.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 3; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.986.t b/test/bug.986.t index 046d6580d..1a43d849b 100755 --- a/test/bug.986.t +++ b/test/bug.986.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.990.t b/test/bug.990.t index 489ce8a0f..99b383939 100755 --- a/test/bug.990.t +++ b/test/bug.990.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 3; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'color.rc') { diff --git a/test/bug.991.t b/test/bug.991.t index 6ff07c35a..ff2f8e228 100755 --- a/test/bug.991.t +++ b/test/bug.991.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 6; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.annotate.t b/test/bug.annotate.t index 41a9d046d..9a79c266a 100755 --- a/test/bug.annotate.t +++ b/test/bug.annotate.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.annual.t b/test/bug.annual.t index adb21704d..b0e642758 100755 --- a/test/bug.annual.t +++ b/test/bug.annual.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 13; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'annual.rc') { diff --git a/test/bug.before.t b/test/bug.before.t index 94ccaf498..b3f7ca88e 100755 --- a/test/bug.before.t +++ b/test/bug.before.t @@ -31,6 +31,10 @@ use warnings; use Time::Local; use Test::More tests => 17; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'before.rc') { diff --git a/test/bug.bulk.t b/test/bug.bulk.t index 93023606b..cde26d48c 100755 --- a/test/bug.bulk.t +++ b/test/bug.bulk.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 12; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bulk.rc') { diff --git a/test/bug.c001.t b/test/bug.c001.t index cc1a4c853..9ac68c272 100755 --- a/test/bug.c001.t +++ b/test/bug.c001.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 3; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.cal.t b/test/bug.cal.t index c27155a1d..d96952a07 100755 --- a/test/bug.cal.t +++ b/test/bug.cal.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 29; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'cal.rc') { diff --git a/test/bug.concat.t b/test/bug.concat.t index 128a72c68..047bad331 100755 --- a/test/bug.concat.t +++ b/test/bug.concat.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/bug.hang.t b/test/bug.hang.t index cf9b2e5e4..070e1b565 100755 --- a/test/bug.hang.t +++ b/test/bug.hang.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 3; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'hang.rc') { diff --git a/test/bug.hasnt.t b/test/bug.hasnt.t index 3a490a2e1..66a3c8f25 100755 --- a/test/bug.hasnt.t +++ b/test/bug.hasnt.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 16; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'hasnt.rc') { diff --git a/test/bug.period.t b/test/bug.period.t index f80bcca02..42378e03c 100755 --- a/test/bug.period.t +++ b/test/bug.period.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 41; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'period.rc') { diff --git a/test/bug.range.t b/test/bug.range.t index 94f5cc2f5..a84305360 100755 --- a/test/bug.range.t +++ b/test/bug.range.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'range.rc') { diff --git a/test/bug.recur.t b/test/bug.recur.t index c136ff226..908b60b43 100755 --- a/test/bug.recur.t +++ b/test/bug.recur.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 3; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'recur.rc') { diff --git a/test/bug.sort.t b/test/bug.sort.t index d7b2cb017..0e457e287 100755 --- a/test/bug.sort.t +++ b/test/bug.sort.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug_sort.rc') { diff --git a/test/bug.start.extra.t b/test/bug.start.extra.t index 162088107..a202994a9 100755 --- a/test/bug.start.extra.t +++ b/test/bug.start.extra.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 6; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'extra.rc') { diff --git a/test/bug.summary.t b/test/bug.summary.t index 4ab768f24..ee17016e1 100755 --- a/test/bug.summary.t +++ b/test/bug.summary.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'summary.rc') { diff --git a/test/bug.uuid.t b/test/bug.uuid.t index 9a79e900b..4088bbfbf 100755 --- a/test/bug.uuid.t +++ b/test/bug.uuid.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'uuid.rc') { diff --git a/test/bulk.t b/test/bulk.t index 2b92871a6..fa6a77d8f 100755 --- a/test/bulk.t +++ b/test/bulk.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 44; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bulk.rc') { diff --git a/test/cal.t b/test/cal.t index 6ee5f2b40..085d44612 100755 --- a/test/cal.t +++ b/test/cal.t @@ -32,6 +32,10 @@ use strict; use warnings; use Test::More tests => 84; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'cal.rc') { diff --git a/test/caseless.t b/test/caseless.t index 42ac5794c..424876e9e 100755 --- a/test/caseless.t +++ b/test/caseless.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 18; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'caseless.rc') { diff --git a/test/color.active.t b/test/color.active.t index 75d9ca60d..64fee6169 100755 --- a/test/color.active.t +++ b/test/color.active.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'color.rc') { diff --git a/test/color.blocked.t b/test/color.blocked.t index af9865a2c..5cea26b6f 100755 --- a/test/color.blocked.t +++ b/test/color.blocked.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'color.rc') { diff --git a/test/color.deprecated.t b/test/color.deprecated.t index 410957c73..7a40f2364 100755 --- a/test/color.deprecated.t +++ b/test/color.deprecated.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 3; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'color.rc') { diff --git a/test/color.disable.t b/test/color.disable.t index 24295b436..dcebc391e 100755 --- a/test/color.disable.t +++ b/test/color.disable.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'color.rc') { diff --git a/test/color.due.t b/test/color.due.t index 4e2938b71..b26e358fd 100755 --- a/test/color.due.t +++ b/test/color.due.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'color.rc') { diff --git a/test/color.duetoday.t b/test/color.duetoday.t index dbe66ddfd..0e0245abd 100755 --- a/test/color.duetoday.t +++ b/test/color.duetoday.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'color.rc') { diff --git a/test/color.err.t b/test/color.err.t index 83390565f..5ddc4fb9c 100755 --- a/test/color.err.t +++ b/test/color.err.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 6; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'color.rc') { diff --git a/test/color.keyword.t b/test/color.keyword.t index 40606312e..e824f192d 100755 --- a/test/color.keyword.t +++ b/test/color.keyword.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 6; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'color.rc') { diff --git a/test/color.overdue.t b/test/color.overdue.t index fc64a821a..d55aaf063 100755 --- a/test/color.overdue.t +++ b/test/color.overdue.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'color.rc') { diff --git a/test/color.pri.t b/test/color.pri.t index ff49403da..5596b8bdb 100755 --- a/test/color.pri.t +++ b/test/color.pri.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 6; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'color.rc') { diff --git a/test/color.project.t b/test/color.project.t index a9369deda..53c673206 100755 --- a/test/color.project.t +++ b/test/color.project.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'color.rc') { diff --git a/test/color.recurring.t b/test/color.recurring.t index 494e5cd66..85e7ff1bd 100755 --- a/test/color.recurring.t +++ b/test/color.recurring.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'color.rc') { diff --git a/test/color.t.cpp b/test/color.t.cpp index 91cafa774..78fdd138e 100644 --- a/test/color.t.cpp +++ b/test/color.t.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -38,6 +39,10 @@ int main (int argc, char** argv) { UnitTest t (1036); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + // Names matched to values. t.is ((int) Color (""), (int) Color (Color::nocolor), "'' == Color::nocolor"); t.is ((int) Color ("black"), (int) Color (Color::black), "'black' == Color::black"); diff --git a/test/color.tag.t b/test/color.tag.t index 75f1a799d..c3e88333b 100755 --- a/test/color.tag.t +++ b/test/color.tag.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'color.rc') { diff --git a/test/color.tagged.t b/test/color.tagged.t index a5dc76e7a..18c86711b 100755 --- a/test/color.tagged.t +++ b/test/color.tagged.t @@ -29,10 +29,14 @@ use strict; use warnings; use Test::More tests => 5; + +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data'); - # Create the rc file. if (open my $fh, '>', 'color.rc') { diff --git a/test/color.uda.t b/test/color.uda.t index 770abe0a3..967043d1b 100755 --- a/test/color.uda.t +++ b/test/color.uda.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'color.rc') { diff --git a/test/completed.t b/test/completed.t index 97d62b06a..095a1ba4f 100755 --- a/test/completed.t +++ b/test/completed.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'completed.rc') { diff --git a/test/config.obsolete.t b/test/config.obsolete.t index 497b07d0d..2fef5f744 100755 --- a/test/config.obsolete.t +++ b/test/config.obsolete.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'obsolete.rc') { diff --git a/test/config.t.cpp b/test/config.t.cpp index a63e2b83a..1c22000a1 100644 --- a/test/config.t.cpp +++ b/test/config.t.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include @@ -37,6 +38,10 @@ int main (int argc, char** argv) { UnitTest t (11); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + Config c; // void set (const std::string&, const std::string&); diff --git a/test/confirmation.t b/test/confirmation.t index 9bcce4674..637fa447a 100755 --- a/test/confirmation.t +++ b/test/confirmation.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 24; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'confirm.rc') { diff --git a/test/count.t b/test/count.t index dd3111d30..caef5667b 100755 --- a/test/count.t +++ b/test/count.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 7; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'count.rc') { diff --git a/test/countdown.t b/test/countdown.t index 5354c19a3..7b34c5a1f 100755 --- a/test/countdown.t +++ b/test/countdown.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 82; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'countdown.rc') { diff --git a/test/custom.columns.t b/test/custom.columns.t index 141ac4f64..6e5187193 100755 --- a/test/custom.columns.t +++ b/test/custom.columns.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 3; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'custom.rc') { diff --git a/test/custom.priority_long.t b/test/custom.priority_long.t index 456036a5f..54b87992c 100755 --- a/test/custom.priority_long.t +++ b/test/custom.priority_long.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 6; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'pri.rc') { diff --git a/test/custom.recur_ind.t b/test/custom.recur_ind.t index 2dfd16fe1..a31210f67 100755 --- a/test/custom.recur_ind.t +++ b/test/custom.recur_ind.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 7; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'custom.rc') { diff --git a/test/custom.t b/test/custom.t index 905040eb7..86fef3746 100755 --- a/test/custom.t +++ b/test/custom.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'custom.rc') { diff --git a/test/custom.tag_ind.t b/test/custom.tag_ind.t index 876da8003..dd5af7d71 100755 --- a/test/custom.tag_ind.t +++ b/test/custom.tag_ind.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 7; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'custom.rc') { diff --git a/test/date.iso.t b/test/date.iso.t index cb9b585bb..1f2333475 100755 --- a/test/date.iso.t +++ b/test/date.iso.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'iso.rc') { diff --git a/test/date.t.cpp b/test/date.t.cpp index cadeb0628..42ec59cac 100644 --- a/test/date.t.cpp +++ b/test/date.t.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -38,6 +39,10 @@ int main (int argc, char** argv) { UnitTest t (209); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + try { Date now; diff --git a/test/dateformat.t b/test/dateformat.t index bfea1d04b..ebe3eb2b7 100755 --- a/test/dateformat.t +++ b/test/dateformat.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 10; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'date1.rc') { diff --git a/test/datesort.t b/test/datesort.t index e366b40da..983234e58 100755 --- a/test/datesort.t +++ b/test/datesort.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'datesort.rc') { diff --git a/test/default.t b/test/default.t index ddef46dff..f4b4b0869 100755 --- a/test/default.t +++ b/test/default.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 21; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'default.rc') { diff --git a/test/delete.t b/test/delete.t index 6795964fd..4d07087f6 100755 --- a/test/delete.t +++ b/test/delete.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 16; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'delete.rc') { diff --git a/test/denotate.t b/test/denotate.t index 68ebb19d8..117a7f7f2 100755 --- a/test/denotate.t +++ b/test/denotate.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 27; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'denotate.rc') { diff --git a/test/dependencies.t b/test/dependencies.t index a608ebb2d..4650a753f 100755 --- a/test/dependencies.t +++ b/test/dependencies.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 49; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'dep.rc') { diff --git a/test/directory.t.cpp b/test/directory.t.cpp index faba20029..5afe0eb2c 100644 --- a/test/directory.t.cpp +++ b/test/directory.t.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -37,6 +38,10 @@ int main (int argc, char** argv) { UnitTest t (49); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + Directory tmp ("tmp"); tmp.create (); t.ok (tmp.exists (), "tmp dir created."); diff --git a/test/dom.2.t b/test/dom.2.t index e80db51d6..f78a5986d 100755 --- a/test/dom.2.t +++ b/test/dom.2.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'dom.rc') { diff --git a/test/dom.t.cpp b/test/dom.t.cpp index db114ac73..08c0083a6 100644 --- a/test/dom.t.cpp +++ b/test/dom.t.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -38,6 +39,10 @@ int main (int argc, char** argv) { UnitTest t (6); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + try { // Prime the pump. diff --git a/test/due.t b/test/due.t index 21108bac3..4b9d56e51 100755 --- a/test/due.t +++ b/test/due.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 6; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'due.rc') { diff --git a/test/duplicate.t b/test/duplicate.t index 71e6944b5..2974d342d 100755 --- a/test/duplicate.t +++ b/test/duplicate.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 12; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'dup.rc') { diff --git a/test/duplicate2.t b/test/duplicate2.t index c8a6193ee..8d1f3e5f2 100755 --- a/test/duplicate2.t +++ b/test/duplicate2.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 14; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'dup.rc') { diff --git a/test/duration.t.cpp b/test/duration.t.cpp index bf07eb2fa..374c8563e 100644 --- a/test/duration.t.cpp +++ b/test/duration.t.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -52,6 +53,10 @@ int main (int argc, char** argv) { UnitTest t (644); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + Duration d; // std::string format (); diff --git a/test/enpassant.t b/test/enpassant.t index dc6959f78..eed219c93 100755 --- a/test/enpassant.t +++ b/test/enpassant.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 10; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'enp.rc') { diff --git a/test/export.yaml.t b/test/export.yaml.t index 9d307f96a..bc03b5a09 100755 --- a/test/export.yaml.t +++ b/test/export.yaml.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 22; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + my $source_dir = $0; $source_dir =~ s{[^/]+$}{..}; diff --git a/test/feature.1013.t b/test/feature.1013.t index 6c95e4516..ae2e5c633 100755 --- a/test/feature.1013.t +++ b/test/feature.1013.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 10; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'outerr.rc') { diff --git a/test/feature.1061.t b/test/feature.1061.t index ef472eb92..f88eaa898 100755 --- a/test/feature.1061.t +++ b/test/feature.1061.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 8; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/feature.559.t b/test/feature.559.t index 8b287c9a5..337631a50 100755 --- a/test/feature.559.t +++ b/test/feature.559.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/feature.608.t b/test/feature.608.t index 490c1f3da..a61ee2d76 100755 --- a/test/feature.608.t +++ b/test/feature.608.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 3; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/feature.632.t b/test/feature.632.t index 2d5715378..f7bd6e845 100755 --- a/test/feature.632.t +++ b/test/feature.632.t @@ -31,6 +31,10 @@ use warnings; use Test::More tests => 12; use File::Path; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc files. if (open my $fh, '>', 'rc1') { diff --git a/test/feature.725.t b/test/feature.725.t index e0d063d1b..cd4077497 100755 --- a/test/feature.725.t +++ b/test/feature.725.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 8; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'feature.rc') { diff --git a/test/feature.891.t b/test/feature.891.t index cbe726df6..3403121f5 100755 --- a/test/feature.891.t +++ b/test/feature.891.t @@ -31,6 +31,10 @@ use warnings; use Time::Local; use Test::More tests => 37; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/feature.exit.t b/test/feature.exit.t index 640d85762..232edcc1b 100755 --- a/test/feature.exit.t +++ b/test/feature.exit.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'exit.rc') { diff --git a/test/feature.print.empty.columns.t b/test/feature.print.empty.columns.t index 5c382e0fa..6041fd15d 100755 --- a/test/feature.print.empty.columns.t +++ b/test/feature.print.empty.columns.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 6; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/file.t.cpp b/test/file.t.cpp index d19fd9cf8..d7e5ed17c 100644 --- a/test/file.t.cpp +++ b/test/file.t.cpp @@ -26,6 +26,7 @@ //////////////////////////////////////////////////////////////////////////////// #include +#include #include #include #include @@ -37,6 +38,10 @@ int main (int argc, char** argv) { UnitTest t (27); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + Directory tmp ("tmp"); tmp.create (); t.ok (tmp.exists (), "tmp dir created."); diff --git a/test/filter-prefix.t b/test/filter-prefix.t index d3ad2dee3..df44588cb 100755 --- a/test/filter-prefix.t +++ b/test/filter-prefix.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 58; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'filter.rc') { diff --git a/test/filter.t b/test/filter.t index e7c5b82dd..fc9ec0fba 100755 --- a/test/filter.t +++ b/test/filter.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 156; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'filter.rc') { diff --git a/test/fontunderline.t b/test/fontunderline.t index 5406e8449..b9686400d 100755 --- a/test/fontunderline.t +++ b/test/fontunderline.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 10; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'font.rc') { diff --git a/test/history.annual.t b/test/history.annual.t index 9239605c0..b2799c6d8 100755 --- a/test/history.annual.t +++ b/test/history.annual.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 6; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'time.rc') { diff --git a/test/history.monthly.t b/test/history.monthly.t index 0b639de06..b13d8d8d2 100755 --- a/test/history.monthly.t +++ b/test/history.monthly.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 6; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'time.rc') { diff --git a/test/hyphenate.t b/test/hyphenate.t index c2dc3e1dd..06e864f68 100755 --- a/test/hyphenate.t +++ b/test/hyphenate.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 3; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'bug.rc') { diff --git a/test/i18n.t.cpp b/test/i18n.t.cpp index bd834618c..9d9d567b3 100644 --- a/test/i18n.t.cpp +++ b/test/i18n.t.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -42,6 +43,10 @@ int main (int argc, char** argv) { UnitTest t (11); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + try { t.is (format ("pre {1} post", "mid"), "pre mid post", "format 1a"); diff --git a/test/ids.t b/test/ids.t index 8c69ddbf2..ac996f4e2 100755 --- a/test/ids.t +++ b/test/ids.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 10; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'ids.rc') { diff --git a/test/import.t b/test/import.t index caf4a2ad9..833f7a76d 100755 --- a/test/import.t +++ b/test/import.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 13; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'import.rc') { diff --git a/test/import.todo.sh.t b/test/import.todo.sh.t index 45da5b7ba..41c7dbe11 100755 --- a/test/import.todo.sh.t +++ b/test/import.todo.sh.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 26; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + my $source_dir = $0; $source_dir =~ s{[^/]+$}{..}; diff --git a/test/import.yaml.t b/test/import.yaml.t index f54b544b7..8f995e863 100755 --- a/test/import.yaml.t +++ b/test/import.yaml.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 16; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + my $source_dir = $0; $source_dir =~ s{[^/]+$}{..}; diff --git a/test/json.t.cpp b/test/json.t.cpp index aa4f47894..d6a02832c 100644 --- a/test/json.t.cpp +++ b/test/json.t.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -106,6 +107,10 @@ int main (int argc, char** argv) { UnitTest t (NUM_POSITIVE_TESTS + NUM_NEGATIVE_TESTS + 22); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + // Positive tests. for (int i = 0; i < NUM_POSITIVE_TESTS; ++i) { diff --git a/test/json_test.cpp b/test/json_test.cpp index 77e622167..5defcb430 100644 --- a/test/json_test.cpp +++ b/test/json_test.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include #include diff --git a/test/json_test.t b/test/json_test.t index 1a5004db7..3a79c93cc 100755 --- a/test/json_test.t +++ b/test/json_test.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + my $source_dir = $0; $source_dir =~ s{[^/]+$}{..}; diff --git a/test/label.t b/test/label.t index 38ac031ab..6036e5df4 100755 --- a/test/label.t +++ b/test/label.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 7; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'custom.rc') { diff --git a/test/limit.t b/test/limit.t index aaa70023d..30498cfbd 100755 --- a/test/limit.t +++ b/test/limit.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 6; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'limit.rc') { diff --git a/test/list.all.projects.t b/test/list.all.projects.t index 1c9b78f83..457e82ce5 100755 --- a/test/list.all.projects.t +++ b/test/list.all.projects.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 8; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'projects.rc') { diff --git a/test/list.all.tags.t b/test/list.all.tags.t index 6457e380d..d08154600 100755 --- a/test/list.all.tags.t +++ b/test/list.all.tags.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 8; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'tags.rc') { diff --git a/test/list.t.cpp b/test/list.t.cpp index 0226e50f3..21355b343 100644 --- a/test/list.t.cpp +++ b/test/list.t.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -38,6 +39,10 @@ int main (int argc, char** argv) { UnitTest t (24); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + // 1,2,3 <=> 2,3,4 std::vector string_one; string_one.push_back ("1"); diff --git a/test/log.t b/test/log.t index 8353dadca..4f2c700f7 100755 --- a/test/log.t +++ b/test/log.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 3; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'log.rc') { diff --git a/test/merge.duplicates.t b/test/merge.duplicates.t index a9a87ff43..e0471941a 100755 --- a/test/merge.duplicates.t +++ b/test/merge.duplicates.t @@ -32,6 +32,10 @@ use Test::More tests => 31; use File::Copy; use File::Path; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + use constant false => 0; use constant true => 1; diff --git a/test/merge.simple_duplication.t b/test/merge.simple_duplication.t index bf5620d0b..578629e9b 100755 --- a/test/merge.simple_duplication.t +++ b/test/merge.simple_duplication.t @@ -32,6 +32,10 @@ use File::Copy; use File::Path; use Test::More tests => 16; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + mkdir("1", 0755); mkdir("2", 0755); mkdir("dropbox", 0755); diff --git a/test/merge.t b/test/merge.t index dc6a7f5d9..216dc47b2 100755 --- a/test/merge.t +++ b/test/merge.t @@ -32,6 +32,10 @@ use Test::More tests => 33; use File::Copy; use File::Path; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + use constant false => 0; use constant true => 1; diff --git a/test/msg.t.cpp b/test/msg.t.cpp index 134ce74b8..b417e22c7 100644 --- a/test/msg.t.cpp +++ b/test/msg.t.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -38,6 +39,10 @@ int main (int argc, char** argv) { UnitTest t (12); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + Msg m; t.is (m.serialize (), std::string ("client: ") + PACKAGE_STRING + "\n\n\n", "Msg::serialize '' --> '\\n\\n'"); diff --git a/test/nag.t b/test/nag.t index ea1240cfa..4591e63ca 100755 --- a/test/nag.t +++ b/test/nag.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 8; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'nag.rc') { diff --git a/test/next.t b/test/next.t index 4352e2717..8dfb35baf 100755 --- a/test/next.t +++ b/test/next.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'next.rc') { diff --git a/test/nibbler.t.cpp b/test/nibbler.t.cpp index 383f7c066..fc78d4edf 100644 --- a/test/nibbler.t.cpp +++ b/test/nibbler.t.cpp @@ -26,6 +26,7 @@ //////////////////////////////////////////////////////////////////////////////// #include +#include #include #include #ifdef NIBBLER_FEATURE_DATE @@ -52,6 +53,10 @@ int main (int argc, char** argv) #endif #endif + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + try { Nibbler n; diff --git a/test/oldest.t b/test/oldest.t index 955a5e426..24937f042 100755 --- a/test/oldest.t +++ b/test/oldest.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 54; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'oldest.rc') { diff --git a/test/op_and.t b/test/op_and.t index a9793e087..847c4b6c3 100755 --- a/test/op_and.t +++ b/test/op_and.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 26; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'op.rc') { diff --git a/test/op_gt.t b/test/op_gt.t index 6cfee941e..6548a22ab 100755 --- a/test/op_gt.t +++ b/test/op_gt.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 26; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'op.rc') { diff --git a/test/op_gte.t b/test/op_gte.t index 704da2c9b..bd4da56c9 100755 --- a/test/op_gte.t +++ b/test/op_gte.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 14; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'op.rc') { diff --git a/test/op_lt.t b/test/op_lt.t index c7624d8b1..eaa08f479 100755 --- a/test/op_lt.t +++ b/test/op_lt.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 26; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'op.rc') { diff --git a/test/op_lte.t b/test/op_lte.t index 6f22f5dc6..c88599ee7 100755 --- a/test/op_lte.t +++ b/test/op_lte.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 14; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'op.rc') { diff --git a/test/op_or.t b/test/op_or.t index c26d3b884..92d67d64d 100755 --- a/test/op_or.t +++ b/test/op_or.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 18; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'op.rc') { diff --git a/test/op_xor.t b/test/op_xor.t index 28d3c5bf6..35170acf3 100755 --- a/test/op_xor.t +++ b/test/op_xor.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 18; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'op.rc') { diff --git a/test/overdue.t b/test/overdue.t index 58bb3dff5..c0c5ad34e 100755 --- a/test/overdue.t +++ b/test/overdue.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'due.rc') { diff --git a/test/override.t b/test/override.t index 4a8fe2752..ed6c0028a 100755 --- a/test/override.t +++ b/test/override.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 3; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'or.rc') { diff --git a/test/path.t.cpp b/test/path.t.cpp index 073f6ed35..00fee15d5 100644 --- a/test/path.t.cpp +++ b/test/path.t.cpp @@ -26,6 +26,7 @@ //////////////////////////////////////////////////////////////////////////////// #include +#include #include #include #include @@ -37,6 +38,10 @@ int main (int argc, char** argv) { UnitTest t (32); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + // Path (); Path p0; t.is (p0._data, "", "Path::Path"); diff --git a/test/prepend.t b/test/prepend.t index 62aa01119..3ae744bff 100755 --- a/test/prepend.t +++ b/test/prepend.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'prepend.rc') { diff --git a/test/pri_sort.t b/test/pri_sort.t index baac89cdb..f570dbf2c 100755 --- a/test/pri_sort.t +++ b/test/pri_sort.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 34; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'pri.rc') { diff --git a/test/project.t b/test/project.t index bea20ee21..3e2ec399b 100755 --- a/test/project.t +++ b/test/project.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 18; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'pro.rc') { diff --git a/test/rc.override.t b/test/rc.override.t index 2aa407f98..ba8f24e56 100755 --- a/test/rc.override.t +++ b/test/rc.override.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'rc.rc') { diff --git a/test/rc.t b/test/rc.t index 5f2423055..88fa956a5 100755 --- a/test/rc.t +++ b/test/rc.t @@ -31,6 +31,10 @@ use warnings; use File::Path; use Test::More tests => 15; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file, using rc.name:value. unlink 'foo.rc'; rmtree 'foo', 0, 0; diff --git a/test/recur.limit.t b/test/recur.limit.t index 8ed5a0f7b..23774d98a 100755 --- a/test/recur.limit.t +++ b/test/recur.limit.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'recur.rc') { diff --git a/test/recur.sort.t b/test/recur.sort.t index 0db5fc825..8266804c5 100755 --- a/test/recur.sort.t +++ b/test/recur.sort.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'recur.rc') { diff --git a/test/recur.t b/test/recur.t index c3076044c..065daa291 100755 --- a/test/recur.t +++ b/test/recur.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 11; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'recur.rc') { diff --git a/test/recur.until.t b/test/recur.until.t index b80eec4a4..a7d8d56a3 100755 --- a/test/recur.until.t +++ b/test/recur.until.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 8; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'recur.rc') { diff --git a/test/recur.weekdays.t b/test/recur.weekdays.t index 9f1d0b872..6de584099 100755 --- a/test/recur.weekdays.t +++ b/test/recur.weekdays.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'recur.rc') { diff --git a/test/roundtrip.t b/test/roundtrip.t index 802a68af5..eb6208d1b 100755 --- a/test/roundtrip.t +++ b/test/roundtrip.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'roundtrip.rc') { diff --git a/test/rx.t.cpp b/test/rx.t.cpp index 668cccebf..e2634513b 100644 --- a/test/rx.t.cpp +++ b/test/rx.t.cpp @@ -26,6 +26,7 @@ //////////////////////////////////////////////////////////////////////////////// #include +#include #include #include #include @@ -36,6 +37,10 @@ int main (int argc, char** argv) { UnitTest ut (23); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + std::string text = "This is a test."; RX r1 ("i. ", true); diff --git a/test/sequence.t b/test/sequence.t index 21f7807c4..33efdd074 100755 --- a/test/sequence.t +++ b/test/sequence.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 26; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'seq.rc') { diff --git a/test/shadow.t b/test/shadow.t index 4c13de4e2..94aac0c36 100755 --- a/test/shadow.t +++ b/test/shadow.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 18; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'shadow.rc') { diff --git a/test/shell.t b/test/shell.t index 4119e6e25..d8509c131 100755 --- a/test/shell.t +++ b/test/shell.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'shell.rc') { diff --git a/test/sorting.t b/test/sorting.t index 10fd77ef0..b5b6f9d55 100755 --- a/test/sorting.t +++ b/test/sorting.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 100; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'sorting.rc') { diff --git a/test/special.t b/test/special.t index 3434d51b9..866ba0c70 100755 --- a/test/special.t +++ b/test/special.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'special.rc') { diff --git a/test/start.t b/test/start.t index f541387b0..5a7a9797e 100755 --- a/test/start.t +++ b/test/start.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 17; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'start.rc') { diff --git a/test/subproject.t b/test/subproject.t index 2ecfc02b4..e85779d30 100755 --- a/test/subproject.t +++ b/test/subproject.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 10; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'sp.rc') { diff --git a/test/substitute.t b/test/substitute.t index 558ad110e..266db6953 100755 --- a/test/substitute.t +++ b/test/substitute.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 9; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'subst.rc') { diff --git a/test/t.t.cpp b/test/t.t.cpp index d4c74454a..e37c99440 100644 --- a/test/t.t.cpp +++ b/test/t.t.cpp @@ -26,6 +26,7 @@ //////////////////////////////////////////////////////////////////////////////// #include +#include #include #include @@ -36,6 +37,10 @@ int main (int argc, char** argv) { UnitTest test (30); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + test.is ((int)Task::textToStatus ("pending"), (int)Task::pending, "textToStatus pending"); test.is ((int)Task::textToStatus ("completed"), (int)Task::completed, "textToStatus completed"); test.is ((int)Task::textToStatus ("deleted"), (int)Task::deleted, "textToStatus deleted"); diff --git a/test/t2.t.cpp b/test/t2.t.cpp index 33c179f6e..b72a0e0d0 100644 --- a/test/t2.t.cpp +++ b/test/t2.t.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -38,6 +39,10 @@ int main (int argc, char** argv) { UnitTest t (18); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + // (blank) bool good = true; Task task; diff --git a/test/t3.t.cpp b/test/t3.t.cpp index d9746d7e2..31c4cb61b 100644 --- a/test/t3.t.cpp +++ b/test/t3.t.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -38,6 +39,10 @@ int main (int argc, char** argv) { UnitTest t (9); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + Task::attributes["description"] = "string"; Task::attributes["entry"] = "date"; Task::attributes["tags"] = "string"; diff --git a/test/tag.t b/test/tag.t index f3ec6d248..3bb15b0ca 100755 --- a/test/tag.t +++ b/test/tag.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 8; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'tag.rc') { diff --git a/test/taskmod.t.cpp b/test/taskmod.t.cpp index 6776a1c82..2566ece05 100644 --- a/test/taskmod.t.cpp +++ b/test/taskmod.t.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -41,6 +42,10 @@ int main (int argc, char** argv) { UnitTest t (16); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + bool good = true; // base timestamp diff --git a/test/tdb2.t.cpp b/test/tdb2.t.cpp index 1c4f4aff3..f06dde66c 100644 --- a/test/tdb2.t.cpp +++ b/test/tdb2.t.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -38,6 +39,10 @@ int main (int argc, char** argv) { UnitTest t (12); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + try { // Remove any residual test files. diff --git a/test/template.t b/test/template.t index 9c3dba1d8..903f8e471 100755 --- a/test/template.t +++ b/test/template.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + use File::Basename; my $ut = basename ($0); my $rc = $ut . '.rc'; diff --git a/test/test.cpp b/test/test.cpp index 90d36d0df..74721b0d7 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include diff --git a/test/text.t.cpp b/test/text.t.cpp index b9ce48229..c6b2bbae4 100644 --- a/test/text.t.cpp +++ b/test/text.t.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -39,6 +40,10 @@ int main (int argc, char** argv) { UnitTest t (264); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + // void wrapText (std::vector & lines, const std::string& text, const int width, bool hyphenate) std::string text = "This is a test of the line wrapping code."; std::vector lines; diff --git a/test/timesheet.t b/test/timesheet.t index 727757d36..03a344b5c 100755 --- a/test/timesheet.t +++ b/test/timesheet.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 6; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'time.rc') { diff --git a/test/uda_date.t b/test/uda_date.t index c2c521a64..d1067534f 100755 --- a/test/uda_date.t +++ b/test/uda_date.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'uda.rc') { diff --git a/test/uda_defaults.t b/test/uda_defaults.t index 95c1ec499..4c4123de1 100755 --- a/test/uda_defaults.t +++ b/test/uda_defaults.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 8; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'uda.rc') { diff --git a/test/uda_duration.t b/test/uda_duration.t index 830b05a25..0d8286d55 100755 --- a/test/uda_duration.t +++ b/test/uda_duration.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 6; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'uda.rc') { diff --git a/test/uda_numeric.t b/test/uda_numeric.t index eb1591dbb..094220295 100755 --- a/test/uda_numeric.t +++ b/test/uda_numeric.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'uda.rc') { diff --git a/test/uda_orphan.t b/test/uda_orphan.t index 8961c682f..002d14726 100755 --- a/test/uda_orphan.t +++ b/test/uda_orphan.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 10; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'uda.rc') { diff --git a/test/uda_report.t b/test/uda_report.t index d85f9cabc..d3be34fef 100755 --- a/test/uda_report.t +++ b/test/uda_report.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'uda.rc') { diff --git a/test/uda_string.t b/test/uda_string.t index 29757d589..a0ff7edf0 100755 --- a/test/uda_string.t +++ b/test/uda_string.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 4; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'uda.rc') { diff --git a/test/uda_value.t b/test/uda_value.t index d080f28ad..2b3120a15 100755 --- a/test/uda_value.t +++ b/test/uda_value.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'uda.rc') { diff --git a/test/undo.t b/test/undo.t index 4b5c109eb..86a5ab11c 100755 --- a/test/undo.t +++ b/test/undo.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 11; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'undo.rc') { diff --git a/test/upgrade.t b/test/upgrade.t index 1f6201970..9fee56aeb 100755 --- a/test/upgrade.t +++ b/test/upgrade.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 7; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'upgrade.rc') { diff --git a/test/urgency.t b/test/urgency.t index 849acf1da..9356b43b2 100755 --- a/test/urgency.t +++ b/test/urgency.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 32; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + sub in_range { my ($value, $low, $high, $message) = @_; diff --git a/test/uri.t.cpp b/test/uri.t.cpp index 24dac50ba..cdaa68af8 100644 --- a/test/uri.t.cpp +++ b/test/uri.t.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -39,6 +40,10 @@ int main (int argc, char** argv) { UnitTest t (54); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + Uri uri1 ("asfd://user@host/folder/"); uri1.parse (); t.is (uri1._user, "user", "Uri::parse() : asdf://user@host/folder/"); diff --git a/test/utf8.t.cpp b/test/utf8.t.cpp index 463e7e9e6..6340b4b17 100644 --- a/test/utf8.t.cpp +++ b/test/utf8.t.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include @@ -35,6 +36,10 @@ int main (int argc, char** argv) { UnitTest t (17); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + std::string ascii_text = "This is a test"; std::string utf8_text = "más sábado miércoles"; std::string utf8_wide_text = "改变各种颜色"; diff --git a/test/utf8_tw.t b/test/utf8_tw.t index 5a51047bd..a9e93b8e8 100755 --- a/test/utf8_tw.t +++ b/test/utf8_tw.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 5; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'utf8.rc') { diff --git a/test/util.t.cpp b/test/util.t.cpp index e03e25f68..a271c64b7 100644 --- a/test/util.t.cpp +++ b/test/util.t.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -38,6 +39,10 @@ int main (int argc, char** argv) { UnitTest t (40); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + // TODO bool confirm (const std::string&); // TODO int confirm3 (const std::string&); // TODO int confirm4 (const std::string&); diff --git a/test/uuid.t b/test/uuid.t index 7b0162436..14df09a6d 100755 --- a/test/uuid.t +++ b/test/uuid.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 26; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'uuid.rc') { diff --git a/test/verbose.t b/test/verbose.t index 5a5ef2a4d..4c02176b6 100755 --- a/test/verbose.t +++ b/test/verbose.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 8; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'verbose.rc') { diff --git a/test/view.t.cpp b/test/view.t.cpp index 191bfb514..a7f1860e4 100644 --- a/test/view.t.cpp +++ b/test/view.t.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -44,6 +45,10 @@ int main (int argc, char** argv) { UnitTest t (2); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + try { // Set up configuration. diff --git a/test/wait.t b/test/wait.t index af4c56d3e..442e15ea8 100755 --- a/test/wait.t +++ b/test/wait.t @@ -30,6 +30,10 @@ use strict; use warnings; use Test::More tests => 13; +# Ensure environment has no influence. +delete $ENV{'TASKDATA'}; +delete $ENV{'TASKRC'}; + # Create the rc file. if (open my $fh, '>', 'wait.rc') { diff --git a/test/width.t.cpp b/test/width.t.cpp index aec637504..9554d1941 100644 --- a/test/width.t.cpp +++ b/test/width.t.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include @@ -35,6 +36,10 @@ int main (int argc, char** argv) { UnitTest t (16); + // Ensure environment has no influence. + unsetenv ("TASKDATA"); + unsetenv ("TASKRC"); + t.is (mk_wcwidth ('a'), 1, "U+0061 --> 1"); t.is (mk_wcwidth (0x5149), 2, "U+5149 --> 2");