From ce3cb64aeb1fc7ccfd9f4e94505649171f052e4c Mon Sep 17 00:00:00 2001 From: Jarno Lamsa Date: Mon, 29 Apr 2019 12:07:43 +0300 Subject: [PATCH] Fix check-names.sh --- tests/scripts/check-names.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/scripts/check-names.sh b/tests/scripts/check-names.sh index a74950159..6d9ab0ea3 100755 --- a/tests/scripts/check-names.sh +++ b/tests/scripts/check-names.sh @@ -26,10 +26,11 @@ tests/scripts/list-symbols.sh FAIL=0 printf "\nExported symbols declared in header: " -diff exported-symbols identifiers | sed -n -e 's/^< //p' > undeclared +UNDECLARED=$(diff exported-symbols identifiers | sed -n -e 's/^< //p') > undeclared FILTERED=$( diff tests/scripts/whitelist undeclared | sed -n -e 's/^< //p') +if [ "x$UNDECLARED" != "x" ]; then if [ "x$FILTERED" = "x" ]; then echo "PASS" else @@ -37,6 +38,9 @@ else echo "$FILTERED" FAIL=1 fi +else + echo "PASS" +fi diff macros identifiers | sed -n -e 's/< //p' > actual-macros