File nmap-ncat-skip-network-tests.patch of Package nmap.11141
From: Andreas Stieger <andreas.stieger@gmx.de>
Date: 2012-12-08 13:31:24 +0000
Subject: [PATCH] ncat - skip tests requiring name resolution
References: http://seclists.org/nmap-dev/2012/q4/373
Upstream: never
Some tests in the ncat test script require name resolution which is not available in OBS. Remove tests.
---
ncat/test/test-addrset.sh | 20 --------------------
1 file changed, 20 deletions(-)
Index: nmap-6.25/ncat/test/test-addrset.sh
===================================================================
--- nmap-6.25.orig/ncat/test/test-addrset.sh 2012-12-08 13:30:07.000000000 +0000
+++ nmap-6.25/ncat/test/test-addrset.sh 2012-12-08 13:30:37.000000000 +0000
@@ -227,26 +227,6 @@ test_addrset "1:2::0003/0" "1:2::3 1:2::
ff::00
EOF
-# Name lookup.
-test_addrset "google.com" "google.com" <<EOF
-1:2::3:4
-1.2.3.4
-google.com
-EOF
-
-# Name lookup combined with CIDR netmask.
-test_addrset "google.com/30" "google.com" <<EOF
-1:2::3:4
-1.2.3.4
-google.com
-EOF
-
-# Name lookup combined with /0 CIDR netmask.
-test_addrset "google.com/0" "1.2.3.4 google.com" <<EOF
-1.2.3.4
-google.com
-EOF
-
expect_fail "."
expect_fail "-"
expect_fail ","