Auto merge of #3313 - micbou:debug-info-test, r=Valloric

[READY] Relax regular expression in DebugInfo test

This makes the `YouCompleteMe_DebugInfo_ServerRunning` test pass whether the libclang completer or the Clangd one are enabled. The `[\w\W]` pattern is used to match everything including newlines.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/3313)
<!-- Reviewable:end -->
This commit is contained in:
zzbot 2019-02-10 18:48:58 -08:00 committed by GitHub
commit cbaf8134e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,15 +214,11 @@ def YouCompleteMe_DebugInfo_ServerRunning_test( ycm ):
'Client logfile: .+\n' 'Client logfile: .+\n'
'Server Python interpreter: .+\n' 'Server Python interpreter: .+\n'
'Server Python version: .+\n' 'Server Python version: .+\n'
'Server has Clang support compiled in: ' 'Server has Clang support compiled in: (False|True)\n'
'(?P<CLANG>True)?(?(CLANG)|False)\n'
'Clang version: .+\n' 'Clang version: .+\n'
'Extra configuration file found and loaded\n' 'Extra configuration file found and loaded\n'
'Extra configuration path: .*testdata[/\\\\]\\.ycm_extra_conf\\.py\n' 'Extra configuration path: .*testdata[/\\\\]\\.ycm_extra_conf\\.py\n'
'(?(CLANG)C-family completer debug information:\n' '[\\w\\W]*'
' Compilation database path: None\n'
' Flags: \\[u?\'_TEMP_FILE_\'.*\\]\n'
' Translation unit: .+\n)'
'Server running at: .+\n' 'Server running at: .+\n'
'Server process ID: \\d+\n' 'Server process ID: \\d+\n'
'Server logfiles:\n' 'Server logfiles:\n'