diff options
Diffstat (limited to 'tests/error-checking.h')
-rw-r--r-- | tests/error-checking.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/error-checking.h b/tests/error-checking.h index 7b25a776..09d3f61f 100644 --- a/tests/error-checking.h +++ b/tests/error-checking.h @@ -4,7 +4,7 @@ ** Copyright (C) 2018 Pelagicore AG ** Contact: https://www.qt.io/licensing/ ** -** This file is part of the Luxoft Application Manager. +** This file is part of the Qt Application Manager. ** ** $QT_BEGIN_LICENSE:GPL-EXCEPT-QTAS$ ** Commercial License Usage @@ -34,7 +34,7 @@ // sadly this has to be a define for QVERIFY2() to work #define AM_CHECK_ERRORSTRING(_actual_errstr, _expected_errstr) do { \ if (_expected_errstr.startsWith(QLatin1String("~"))) { \ - QRegularExpression re(QStringLiteral("\\A") + _expected_errstr.mid(1) + QStringLiteral("\\z")); \ + QRegularExpression re(_expected_errstr.mid(1)); \ QVERIFY2(re.match(_actual_errstr).hasMatch(), \ qPrintable("\n Got : " + _actual_errstr.toLocal8Bit() + \ "\n Expected: " + _expected_errstr.toLocal8Bit())); \ |