From: Stephen Morris Date: Thu, 22 Mar 2018 19:04:12 +0000 (+0000) Subject: Fix check for the presence of IDNA. X-Git-Tag: v9.13.0~77^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5009724f408c3080eddef0eb9b86a9d863780106;p=thirdparty%2Fbind9.git Fix check for the presence of IDNA. --- diff --git a/bin/tests/system/feature-test.c b/bin/tests/system/feature-test.c index ed2a5b2fbe7..0c20930cc40 100644 --- a/bin/tests/system/feature-test.c +++ b/bin/tests/system/feature-test.c @@ -153,7 +153,7 @@ main(int argc, char **argv) { } if (strcmp(argv[1], "--with-idn") == 0) { -#ifdef WITH_IDN +#ifdef WITH_LIBIDN2 return (0); #else return (1); diff --git a/bin/tests/system/idna/prereq.sh b/bin/tests/system/idna/prereq.sh deleted file mode 100644 index dad4c595d66..00000000000 --- a/bin/tests/system/idna/prereq.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -# -# Copyright (C) Internet Systems Consortium, Inc. ("ISC") -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# -# See the COPYRIGHT file distributed with this work for additional -# information regarding copyright ownership. - -SYSTEMTESTTOP=.. -. $SYSTEMTESTTOP/conf.sh - -$FEATURETEST --with-idn -if [ $? -ne 1 ]; then - echo_i "This test requires that BIND be built with IDN support" - exit -fi -exit 0 diff --git a/bin/tests/system/idna/tests.sh b/bin/tests/system/idna/tests.sh index 7684c7a1370..711a0250cbf 100644 --- a/bin/tests/system/idna/tests.sh +++ b/bin/tests/system/idna/tests.sh @@ -307,14 +307,14 @@ idna_enabled_test() { idna_disabled_test() { echo_i "IDNA is disabled, only case mapping tests will be performed" - case_preservation_test + ascii_case_preservation_test } # Main test begins here $FEATURETEST --with-idn -if [ $? -eq 1 ]; then +if [ $? -eq 0 ]; then idna_enabled_test else idna_disabled_test