From: Ondřej Surý Date: Sat, 16 Nov 2019 05:16:46 +0000 (+0800) Subject: The PATH_MAX on macOS is 1024, we can't override conffile path to test for ellipsis X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d953cabb261ac0f40514b3d09d7130def5de9cc8;p=thirdparty%2Fbind9.git The PATH_MAX on macOS is 1024, we can't override conffile path to test for ellipsis --- diff --git a/bin/tests/system/runtime/tests.sh b/bin/tests/system/runtime/tests.sh index f2c59837231..e82f2930991 100644 --- a/bin/tests/system/runtime/tests.sh +++ b/bin/tests/system/runtime/tests.sh @@ -182,14 +182,13 @@ status=`expr $status + $ret` n=`expr $n + 1` echo_i "checking that named logs an ellipsis when the command line is larger than 8k bytes ($n)" ret=0 -SPEC_DIR=`yes | head -10000 | tr -d '\n'` -cd ns2 -$NAMED -c "$SPEC_DIR/named-alt7.conf" -g > named8.run 2>&1 & +LONG_CMD_LINE=`yes "-m usage" | head -1000 | tr '\n' ' '` +copy_setports ns2/named-alt7.conf.in "ns2/named-alt7.conf" +(cd ns2 && $NAMED $LONG_CMD_LINE -c "named-alt7.conf" -g > named8.run 2>&1 &) sleep 2 #grep "running as.*\.\.\.$" named8.run > /dev/null || ret=1 echo_i "skipped - the ellipsis is currently not printed" -kill_named named.pid || ret=1 -cd .. +kill_named ns2/named.pid || ret=1 if [ $ret != 0 ]; then echo_i "failed"; fi status=`expr $status + $ret`