File: no-network-tests.diff

package info (click to toggle)
libfeed-find-perl 0.07-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 300 kB
  • ctags: 391
  • sloc: perl: 4,458; makefile: 8
file content (16 lines) | stat: -rw-r--r-- 439 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
From: Ansgar Burchardt <ansgar@debian.org>
Date: Sat, 05 Mar 2011 16:32:39 +0100
Subject: Disable tests that require network connection
--- libfeed-find-perl.orig/t/01-find.t
+++ libfeed-find-perl/t/01-find.t
@@ -1,3 +1,10 @@
+BEGIN {
+  unless ($ENV{NETWORK_TESTS}) {
+    require Test::More;
+    Test::More::plan(skip_all => "Set NETWORK_TESTS to enable this test.");
+  }
+}
+
 use strict;
 use Test::More tests => 4;
 use Feed::Find;