Test an unexpected line in the Kconfig file
[kconfig-hardened-check.git] / .github / workflows / functional_test.sh
index de4b6a3754cca2d696d1af821d4471f1864b65d6..a4fb08597e7141b9f23f3c3ad22fd222a1fca95a 100644 (file)
@@ -115,6 +115,11 @@ cp test.config error.config
 sed '8 s/CONFIG_CLANG_VERSION=0/CONFIG_CLANG_VERSION=120000/' test.config > error.config
 coverage run -a --branch bin/kconfig-hardened-check -c error.config && exit 1
 
+echo ">>>>> unexpected line in the kconfig file <<<<<"
+cp test.config error.config
+echo 'some strange line' >> error.config
+coverage run -a --branch bin/kconfig-hardened-check -c error.config && exit 1
+
 echo ">>>>> multi-line cmdline file <<<<<"
 echo 'hey man 1' > cmdline
 echo 'hey man 2' >> cmdline