Commit 5943f08e authored by Oswald Buddenhagen's avatar Oswald Buddenhagen Committed by The Qt Project
Browse files

make QT_BEGIN_NAMESPACE test match syncqt's


we support module-specific namespaces now.

Change-Id: Ibc157ea29ded21ca5a7be3a8f9574a881701927a
Reviewed-by: default avatarSergio Ahumada <sergio.ahumada@digia.com>
No related merge requests found
Showing with 2 additions and 2 deletions
...@@ -228,8 +228,8 @@ void tst_Headers::macros() ...@@ -228,8 +228,8 @@ void tst_Headers::macros()
|| header.endsWith("qwindowdefs_win.h")) || header.endsWith("qwindowdefs_win.h"))
return; return;
int beginNamespace = content.indexOf("QT_BEGIN_NAMESPACE"); int beginNamespace = content.indexOf(QRegExp("QT_BEGIN_NAMESPACE(_[A-Z_]+)?"));
int endNamespace = content.lastIndexOf("QT_END_NAMESPACE"); int endNamespace = content.lastIndexOf(QRegExp("QT_END_NAMESPACE(_[A-Z_]+)?"));
QVERIFY(beginNamespace != -1); QVERIFY(beginNamespace != -1);
QVERIFY(endNamespace != -1); QVERIFY(endNamespace != -1);
QVERIFY(beginNamespace < endNamespace); QVERIFY(beginNamespace < endNamespace);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment