\hypertarget{md_src_plugins_ini_crash_test_crash_test_src_plugins_ini_crash_test_crash_test_md}{}\section{Crash Test}\label{md_src_plugins_ini_crash_test_crash_test_src_plugins_ini_crash_test_crash_test_md}
The following Markdown Shell Recorder test checks that the I\+NI plugin does not crash, if the input file contains invalid characters or is not properly formatted.


\begin{DoxyCode}
for file in $(find -E src/plugins/ini/crash\_test -regex '.*crash[0-9]\{3\}.ini$' | sort); do                \(\backslash\)
        cat "$file" | kdb import user/examples/ini ini 2>&1 | grep -q 'SIG' && echo "File $file caused a
       crash" \(\backslash\)
        kdb rm -rf user/examples/ini 2>&1 | grep -q 'SIG' && echo "File $file caused a crash"              
           \(\backslash\)
        # Check if we successfully removed all keys                                                        
           \(\backslash\)
        kdb ls user/examples/ini                                                                           
           \(\backslash\)
done                                                                                                      \(\backslash\)
echo 'OK'
#> OK
\end{DoxyCode}
 