Elektra  0.8.26
Plugin: ini

Crash Test

The following Markdown Shell Recorder test checks that the INI plugin does not crash, if the input file contains invalid characters or is not properly formatted.

1 for file in $(find src/plugins/ini/crash_test -regex '.*crash[0-9][0-9]*.ini$' | sort); do \
2  cat "$file" | kdb import user/tests/ini ini 2>&1 | grep -q 'SIG' && echo "File $file caused a crash" \
3  kdb rm -rf user/tests/ini 2>&1 | grep -q 'SIG' && echo "File $file caused a crash" \
4  # Check if we successfully removed all keys \
5  kdb ls user/tests/ini \
6 done
7 #>