tests: Verify ExpressionMatch with invalid regex
authorShane Synan <digitalcircuit36939@gmail.com>
Thu, 3 Jan 2019 03:54:02 +0000 (22:54 -0500)
committerManuel Nickschas <sputnick@quassel-irc.org>
Fri, 31 May 2019 14:41:59 +0000 (16:41 +0200)
commitc41e04630e685bbd4c4cbd5d331f16c496b2ef8f
tree9631e15258f07b50528097963c126b135724235d
parente38846f054ad1766f2e91992a57bbaffd33c7c06
tests: Verify ExpressionMatch with invalid regex

Verify that ExpressionMatch behaves reasonably with an invalid
regular expression passed in, rejecting all matches and being labeled
as not valid.

This matches the test devised by justJanne in the process of
resolving a crash in Quasseldroid-NG.  We should make sure Quassel
desktop never regresses into crashing, too.

See https://git.kuschku.de/justJanne/QuasselDroid-ng/commit/f1f320782cb0bca3fb7974e7688ce33af19456cf
tests/common/expressionmatchtest.cpp