File: skip_config_tree_recurse_test

package info (click to toggle)
spamassassin 4.0.1-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 22,960 kB
  • sloc: perl: 86,207; ansic: 5,193; sh: 3,710; javascript: 339; sql: 279; makefile: 209; python: 49
file content (32 lines) | stat: -rw-r--r-- 1,465 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Description: Skip config_tree_recurse test

 The default behavior of File::Find will automatically untaint directories with
 "safe" names.  The '~' (tilde) character is not considered a safe name.
 Because Debian source package names use '~' to denote pre-release versions, the
 test will fail with a message similar to the following:
 .
 t/config_tree_recurse.t ........... _get_cf_pre_files_in_dir error: directory /home/admin/spamassassin-3.4.3~rc6+1/t/log/localrules.tmp is still tainted at /usr/share/perl/5.30/File/Find.pm line 558. at ../lib/Mail/SpamAssassin.pm line 2096.
 .
 The solution to this is either to modify lib/Mail/SpamAssassin.pm to consider
 '~' a safe character, or skip the test altogether.  Because the former would
 impact all installations, and the latter is limited to test coverage, we will
 skip the test.
Author: Noah Meyerhans <noahm@debian.org>
Forwarded: not-needed
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: spamassassin/t/config_tree_recurse.t
===================================================================
--- spamassassin.orig/t/config_tree_recurse.t
+++ spamassassin/t/config_tree_recurse.t
@@ -2,7 +2,9 @@
 
 use lib '.'; use lib 't';
 use SATest; sa_t_init("config_tree_recurse.t");
-use Test::More tests => 4;
+use Test::More;
+plan skip_all => "not running this test right now...";
+plan tests => 4;
 
 # ---------------------------------------------------------------------------