Fix functional_test.sh to use --libxo options instead of the deprecated

LIBXO_OPTIONS environment variable.

Submitted by:	phil
This commit is contained in:
Phil Shafer 2017-06-30 23:53:40 +00:00
parent 98018db419
commit 20a21f671f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=320521

View file

@ -39,14 +39,14 @@ check()
[ -s "${out_file}" ] && out_flag="-o file:${out_file}"
if [ "$xo_fmt" = "E" ]; then
LIBXO_OPTIONS="warn,encoder=test"
libxo_options=" warn,encoder=test"
else
LIBXO_OPTIONS=":W${xo_fmt}"
libxo_options=":W${xo_fmt}"
fi
atf_check -s exit:0 -e file:${err_file} -o file:${out_file} \
env LC_ALL=en_US.UTF-8 \
LIBXO_OPTIONS="${LIBXO_OPTIONS}" TZ="EST" "${SRCDIR}/${tc}" \
TZ="EST" "${SRCDIR}/${tc}" --libxo${libxo_options}\
}