# Test export lyx-icon-info
+# creates lib/images/math-mode.pdf in lyx-source tree, but it should not
#
#
Lang C
-TestBegin -dbg files test.lyx > lyx-log.txt 2>&1
+CO: bug-export-latex.ctrl
+TestBegin -dbg key,files test.lyx > bug-export-latex.loga.txt 2>&1
KK: \Axinfo-insert icon math-mode\[Return]
KK: \Axbuffer-export luatex\[Return]
KK: \[Tab]\[Return]
+KK: \Axbuffer-write\[Return]
+KK: \[Tab]\[Return]
+# The next lines should NOT match, because we do not want to create
+# math-mode.pdf inside the system-dir. That is, we expect the test to fail
+Cp: support/FileName.cpp .* creating path '/.*/lib/images'
+Cp: support/FileName.cpp .* Checksumming "/.*/lib/images/.*math-mode.pdf" .*lasted
TestEnd
-Lang C
-Assert ! pcregrep -M "support/FileName.cpp .* creating path '/.*/lib/images'" lyx-log.txt
-Assert ! pcregrep -M 'support/FileName.cpp .* Checksumming "/.*/lib/images/.*math-mode.pdf" .*lasted ' lyx-log.txt
+Assert searchPatterns.pl base=bug-export-latex