diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-02-22 01:29:28 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-02-22 01:52:59 (GMT) |
commit | 2c924630caf449a26d92f227152bd4e0a19138f3 (patch) | |
tree | d9ee056161549f2fa3ad951a6551d32177af009a /tests/auto/symbols | |
parent | 1f10c6be975a2d36c05d926b332b869ad6339877 (diff) | |
download | Qt-2c924630caf449a26d92f227152bd4e0a19138f3.zip Qt-2c924630caf449a26d92f227152bd4e0a19138f3.tar.gz Qt-2c924630caf449a26d92f227152bd4e0a19138f3.tar.bz2 |
Fixed failure of tst_symbols when Qt is configured with -qtnamespace
Blacklist some symbols which cannot be namespaced when Qt is configured
in a namespace.
Diffstat (limited to 'tests/auto/symbols')
-rw-r--r-- | tests/auto/symbols/tst_symbols.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/symbols/tst_symbols.cpp b/tests/auto/symbols/tst_symbols.cpp index e30481a..d6fb65a 100644 --- a/tests/auto/symbols/tst_symbols.cpp +++ b/tests/auto/symbols/tst_symbols.cpp @@ -212,6 +212,10 @@ void tst_Symbols::prefix() << "winfnt_driver_class" << "pshinter_module_class" << "psnames_module_class" + // C symbols from Qt + << "qt_addObject" + << "qt_removeObject" + << "qt_startup_hook" ; QHash<QString,QStringList> excusedPrefixes; @@ -279,6 +283,10 @@ void tst_Symbols::prefix() << "cti" // ctiTrampoline and ctiVMThrowTrampoline from the JIT #ifdef QT_NAMESPACE << "QWeb" // Webkit is only 'namespace aware' + << "qWeb" + << "qt" + << "QGraphicsWebView" + << "operator" #endif ; @@ -331,6 +339,8 @@ void tst_Symbols::prefix() symbol = symbol.mid(symbol.indexOf(' ') + 1); } + if (symbol.mid(symbol.indexOf(' ')+1).startsWith("std::")) + continue; if (symbol.startsWith("_") || symbol.startsWith("std::")) continue; if (symbol.startsWith("vtable ") || symbol.startsWith("VTT for ") || @@ -342,6 +352,8 @@ void tst_Symbols::prefix() continue; if (symbol.startsWith(ns + "operator")) continue; + if (symbol.startsWith("operator new") || symbol.startsWith("operator delete")) + continue; if (symbol.startsWith("guard variable for ")) continue; if (symbol.contains("(" + ns + "QTextStream")) |