tests: unset CFLAGS

CFLAGS may be set in the running environment (eg in abuild check)
This commit is contained in:
Natanael Copa 2023-04-18 15:53:11 +02:00
parent 0a129755fd
commit 0daf4ae637
1 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,8 @@ funcs_check_defconfig_body() {
echo "CFLAGS=syscflags" > etc.conf
echo "CFLAGS=usercflags" > user.conf
unset CFLAGS
# test /usr/share/abuild/default.conf
ABUILD_DEFCONF="$PWD"/def.conf ABUILD_CONF=/dev/null ABUILD_USERCONF=/dev/null \
atf_check -o match:"defcflags" \