Fix check tests on linux platform
dump pattern if pcre compilation failed.