Test an unexpected line in the sysctl file
[kconfig-hardened-check.git] / .github / workflows / functional_test.sh
index a4fb08597e7141b9f23f3c3ad22fd222a1fca95a..cbacf872d07c4b42c3c05436c4f22f2e7d8326df 100644 (file)
@@ -125,4 +125,9 @@ echo 'hey man 1' > cmdline
 echo 'hey man 2' >> cmdline
 coverage run -a --branch bin/kconfig-hardened-check -c test.config -l cmdline && exit 1
 
+echo ">>>>> unexpected line in the sysctl file <<<<<"
+cp $SYSCTL_EXAMPLE error_sysctls
+echo 'some strange line' >> error_sysctls
+coverage run -a --branch bin/kconfig-hardened-check -c test.config -s error_sysctls && exit 1
+
 echo "The end of the functional tests"