| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | using QtMiscUtils::toHexUpper; | - |
| 6 | using QtMiscUtils::fromHex; | - |
| | |
| static void disableCoreDump() | |
| { | |
| bool ok = false; | |
| const int disableCoreDump = qEnvironmentVariableIntValue("QTEST_DISABLE_CORE_DUMP", &ok); | |
| if (ok && disableCoreDump == 1) { | |
| | |
| struct rlimit limit; | |
| limit.rlim_cur = 0; | |
| limit.rlim_max = 0; | |
| if (setrlimit(RLIMIT_CORE, &limit) != 0) | |
| QMessageLogger(__FILE__, 119, __PRETTY_FUNCTION__).warning("Failed to disable core dumps: %d", (*__errno_location ())); | |
| | |
| } | |
| } | |
| namespace { static const struct disableCoreDump_ctor_class_ { inline disableCoreDump_ctor_class_() { disableCoreDump(); } } disableCoreDump_ctor_instance_; | |
| 7 | | - |
| 8 | | - |
| };static void stackTrace() | |
| 10 | { | - |
| 11 | bool ok = false; | - |
| 12 | const int disableStackDump = qEnvironmentVariableIntValue("QTEST_DISABLE_STACK_DUMP", &ok); | - |
| 13 | if (ok && disableStackDump == 1) | - |
| 14 | return; | - |
| 15 | | - |
| 16 | fprintf(stderr, "\n========= Received signal, dumping stack ==============\n"); | - |
| 17 | char cmd[512]; | - |
| 18 | qsnprintf(cmd, 512, "gdb --pid %d 2>/dev/null <<EOF\n" | - |
| 19 | "set prompt\n" | - |
| 20 | "set height 0\n" | - |
| 21 | "thread apply all where full\n" | - |
| 22 | "detach\n" | - |
| 23 | "quit\n" | - |
| 24 | "EOF\n", | - |
| 25 | (int)getpid()); | - |
| 26 | if (system(cmd) == -1) | - |
| 27 | fprintf(stderr, "calling gdb failed\n"); | - |
| 28 | fprintf(stderr, "========= End of stack trace ==============\n"); | - |
| 29 | } | - |
| 30 | | - |
| 31 | static bool installCoverageTool(const char * appname, const char * testname) | - |
| 32 | { | - |
| 33 | | - |
| 34 | if (!qEnvironmentVariableIsEmpty("QT_TESTCOCOON_ACTIVE")) | - |
| 35 | return false; | - |
| 36 | | - |
| 37 | | - |
| 38 | qputenv("QT_TESTCOCOON_ACTIVE", "1"); | - |
| 39 | | - |
| 40 | | - |
| 41 | __coveragescanner_install(appname); | - |
| 42 | __coveragescanner_testname(testname); | - |
| 43 | __coveragescanner_clear(); | - |
| 44 | return true; | - |
| 45 | | - |
| 46 | | - |
| 47 | | - |
| 48 | | - |
| 49 | | - |
| 50 | } | - |
| 51 | | - |
| 52 | static bool isValidSlot(const QMetaMethod &sl) | - |
| 53 | { | - |
| 54 | if (sl.access() != QMetaMethod::Private| TRUE | evaluated 5826 times by 506 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| | FALSE | evaluated 19985 times by 506 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
|
|| sl.parameterCount() != 0| TRUE | evaluated 1289 times by 506 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| | FALSE | evaluated 18696 times by 505 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
|
| 1289-19985 |
| 55 | || sl.returnType() != QMetaType::Void| TRUE | never evaluated | | FALSE | evaluated 18696 times by 505 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
|
|| sl.methodType() != QMetaMethod::Slot| TRUE | never evaluated | | FALSE | evaluated 18696 times by 505 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
|
) | 0-18696 |
| 56 | returnexecuted 7115 times by 506 tests: return false;Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
falseexecuted 7115 times by 506 tests: return false;Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
executed 7115 times by 506 tests: return false;Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
;executed 7115 times by 506 tests: return false;Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 7115 |
| 57 | const QByteArray name = sl.name(); | - |
| 58 | returnexecuted 18696 times by 505 tests: return !(name.isEmpty() || name.endsWith("_data") || name == "initTestCase" || name == "cleanupTestCase" || name == "init" || name == "cleanup");Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
!(name.isEmpty() || name.endsWith("_data")executed 18696 times by 505 tests: return !(name.isEmpty() || name.endsWith("_data") || name == "initTestCase" || name == "cleanupTestCase" || name == "init" || name == "cleanup");Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 18696 |
| 59 | || name == "initTestCase" || name == "cleanupTestCase"executed 18696 times by 505 tests: return !(name.isEmpty() || name.endsWith("_data") || name == "initTestCase" || name == "cleanupTestCase" || name == "init" || name == "cleanup");Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 18696 |
| 60 | || name == "init" || name == "cleanup");executed 18696 times by 505 tests: return !(name.isEmpty() || name.endsWith("_data") || name == "initTestCase" || name == "cleanupTestCase" || name == "init" || name == "cleanup");Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 18696 |
| 61 | } | - |
| 62 | | - |
| 63 | namespace QTest | - |
| 64 | { | - |
| 65 | class WatchDog; | - |
| 66 | | - |
| 67 | static QObject *currentTestObject = 0; | - |
| 68 | static QString mainSourcePath; | - |
| 69 | | - |
| 70 | class TestFunctionTestMethods { | - |
| 71 | TestMethods(const TestMethods &) = delete; TestMethods &operator=(const TestMethods &) = delete; | - |
| 72 | public: | - |
| TestFunction(): | |
| 73 | function_(-1), data_typedef std::vector<QMetaMethod> MetaMethods; | - |
| 74 | | - |
| 75 | explicit TestMethods(0) {}const QObject *o, const MetaMethods &m = MetaMethods()); | - |
| 76 | | - |
| 77 | void setinvokeTests(int function, charQObject *datatestObject) { function_ = function; data_ = dataconst; | - |
| 78 | | - |
| 79 | }static QMetaMethod findMethod(const QObject *obj, const char *signature); | - |
| 80 | | - |
| 81 | private: | - |
| 82 | bool invokeTest(int index, const char *data(), WatchDog *watchDog) const{ return data_; | - |
| 83 | }void invokeTestOnData(int function()index) const{ return function_; | - |
| 84 | | - |
| 85 | } | - |
| ~TestFunction() { delete[] data_QMetaMethod m_initTestCaseMethod; | |
| 86 | } | - |
| private: | |
| int function_QMetaMethod m_initTestCaseDataMethod; | |
| 87 | char *data_QMetaMethod m_cleanupTestCaseMethod; | - |
| 88 | QMetaMethod m_initMethod; | - |
| 89 | QMetaMethod m_cleanupMethod; | - |
| 90 | | - |
| 91 | MetaMethods m_methods; | - |
| 92 | }; | - |
| 93 | | - |
| 94 | static TestFunctionTestMethods::TestMethods(const QObject *testFuncso, const MetaMethods &m) | - |
| 95 | : m_initTestCaseMethod(TestMethods::findMethod(o, "initTestCase()")) | - |
| 96 | , m_initTestCaseDataMethod(TestMethods::findMethod(o, "initTestCase_data()")) | - |
| 97 | , m_cleanupTestCaseMethod(TestMethods::findMethod(o, "cleanupTestCase()")) | - |
| 98 | , m_initMethod(TestMethods::findMethod(o, "init()")) | - |
| 99 | , m_cleanupMethod(TestMethods::findMethod(o, "cleanup()")) | - |
| 100 | , m_methods(m) | - |
| 101 | { | - |
| 102 | if (m.empty()| TRUE | evaluated 1281 times by 506 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| | FALSE | evaluated 39 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 39-1281 |
| 103 | const QMetaObject *metaObject = 0; | - |
| statico->metaObject(); | |
| 104 | const int testFuncCountcount = metaObject->methodCount(); | - |
| 105 | m_methods.reserve(count); | - |
| 106 | for (int i = 0; static struct TestFuncCleanupi < count| TRUE | evaluated 25703 times by 506 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| | FALSE | evaluated 1281 times by 506 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
|
; ++i) { | 1281-25703 |
| 107 | void cleanup()const QMetaMethod me = metaObject->method(i); | - |
| 108 | if (isValidSlot(me)| TRUE | evaluated 13376 times by 504 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| | FALSE | evaluated 12327 times by 506 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
|
) | 12327-13376 |
| 109 | m_methods.push_back(me);executed 13376 times by 504 tests: m_methods.push_back(me);Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 13376 |
| 110 | }executed 25703 times by 506 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 25703 |
| 111 | }executed 1281 times by 506 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 1281 |
| 112 | }executed 1320 times by 506 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 1320 |
| 113 | | - |
| 114 | QMetaMethod TestMethods::findMethod(const QObject *obj, const char *signature) | - |
| 115 | { | - |
| 116 | delete[] testFuncs; | - |
| testFuncCountconst QMetaObject *metaObject = 0; | |
| testFuncsobj->metaObject(); | |
| 117 | const int funcIndex = metaObject->indexOfMethod(signature); | - |
| 118 | returnexecuted 6664 times by 506 tests: return funcIndex >= 0 ? metaObject->method(funcIndex) : QMetaMethod();Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
funcIndex >=executed 6664 times by 506 tests: return funcIndex >= 0 ? metaObject->method(funcIndex) : QMetaMethod();Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
executed 6664 times by 506 tests: return funcIndex >= 0 ? metaObject->method(funcIndex) : QMetaMethod();Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
0 ;executed 6664 times by 506 tests: return funcIndex >= 0 ? metaObject->method(funcIndex) : QMetaMethod();Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 6664 |
| }executed 6664 times by 506 tests: return funcIndex >= 0 ? metaObject->method(funcIndex) : QMetaMethod();Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| |
| | |
| ~TestFuncCleanup() { cleanupexecuted 6664 times by 506 tests: return funcIndex >= 0 ? metaObject->method(funcIndex) : QMetaMethod();Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
executed 6664 times by 506 tests: return funcIndex >= 0 ? metaObject->method(funcIndex) : QMetaMethod();Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
? metaObject->method(funcIndex) : QMetaMethod();executed 6664 times by 506 tests: return funcIndex >= 0 ? metaObject->method(funcIndex) : QMetaMethod();Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| |
| 119 | }} | - |
| 120 | | - |
| 121 | testFuncCleaner;static int keyDelay = -1; | - |
| 122 | static int mouseDelay = -1; | - |
| 123 | static int eventDelay = -1; | - |
| 124 | static int timeout = -1; | - |
| 125 | static bool noCrashHandler = false; | - |
| 126 | | - |
| 127 | | - |
| 128 | | - |
| 129 | | - |
| 130 | static void invokeMethod(QObject *obj, const char *methodName) | - |
| 131 | { | - |
| 132 | const QMetaObject *metaObject = obj->metaObject(); | - |
| 133 | int funcIndex = metaObject->indexOfMethod(methodName); | - |
| 134 | if (funcIndex >= 0) { | - |
| 135 | QMetaMethod method = metaObject->method(funcIndex); | - |
| 136 | method.invoke(obj, Qt::DirectConnection); | - |
| 137 | } | - |
| 138 | } | - |
| 139 | | - |
| 140 | int defaultEventDelay() | - |
| 141 | { | - |
| 142 | if (eventDelay == -1) { | - |
| 143 | const QByteArray env = qgetenv("QTEST_EVENT_DELAY"); | - |
| 144 | if (!env.isEmpty()) | - |
| 145 | eventDelay = atoi(env.constData()); | - |
| 146 | else | - |
| 147 | eventDelay = 0; | - |
| 148 | } | - |
| 149 | return eventDelay; | - |
| 150 | } | - |
| 151 | | - |
| 152 | int __attribute__((visibility("default"))) defaultMouseDelay() | - |
| 153 | { | - |
| 154 | if (mouseDelay == -1) { | - |
| 155 | const QByteArray env = qgetenv("QTEST_MOUSEEVENT_DELAY"); | - |
| 156 | if (!env.isEmpty()) | - |
| 157 | mouseDelay = atoi(env.constData()); | - |
| 158 | else | - |
| 159 | mouseDelay = defaultEventDelay(); | - |
| 160 | } | - |
| 161 | return mouseDelay; | - |
| 162 | } | - |
| 163 | | - |
| 164 | int __attribute__((visibility("default"))) defaultKeyDelay() | - |
| 165 | { | - |
| 166 | if (keyDelay == -1) { | - |
| 167 | const QByteArray env = qgetenv("QTEST_KEYEVENT_DELAY"); | - |
| 168 | if (!env.isEmpty()) | - |
| 169 | keyDelay = atoi(env.constData()); | - |
| 170 | else | - |
| 171 | keyDelay = defaultEventDelay(); | - |
| 172 | } | - |
| 173 | return keyDelay; | - |
| 174 | } | - |
| 175 | | - |
| 176 | static int defaultTimeout() | - |
| 177 | { | - |
| 178 | if (timeout == -1) { | - |
| 179 | bool ok = false; | - |
| 180 | timeout = qEnvironmentVariableIntValue("QTEST_FUNCTION_TIMEOUT", &ok); | - |
| 181 | | - |
| 182 | if (!ok || timeout <= 0) | - |
| 183 | timeout = 5*60*1000; | - |
| 184 | } | - |
| 185 | return timeout; | - |
| } | |
| | |
| static bool isValidSlot(const QMetaMethod &sl) | |
| { | |
| if (sl.access() != QMetaMethod::Private || sl.parameterCount() != 0 | |
| || sl.returnType() != QMetaType::Void || sl.methodType() != QMetaMethod::Slot) | |
| return false; | |
| QByteArray name = sl.name(); | |
| if (name.isEmpty()) | |
| return false; | |
| if (name.endsWith("_data")) | |
| return false; | |
| if (name == "initTestCase" || name == "cleanupTestCase" | |
| || name == "cleanup" || name == "init") | |
| return false; | |
| return true; | |
| 186 | } | - |
| 187 | | - |
| 188 | __attribute__((visibility("default"))) bool printAvailableFunctions = false; | - |
| 189 | __attribute__((visibility("default"))) QStringList testFunctions; | - |
| 190 | __attribute__((visibility("default"))) QStringList testTags; | - |
| 191 | | - |
| 192 | static void qPrintTestSlots(FILE *stream, const char *filter = 0) | - |
| 193 | { | - |
| 194 | for (int i = 0; i < QTest::currentTestObject->metaObject()->methodCount(); ++i) { | - |
| 195 | QMetaMethod sl = QTest::currentTestObject->metaObject()->method(i); | - |
| 196 | if (isValidSlot(sl)) { | - |
| 197 | const QByteArray signature = sl.methodSignature(); | - |
| 198 | if (!filter || QString::fromLatin1(signature).contains(QLatin1String(filter), Qt::CaseInsensitive)) | - |
| 199 | fprintf(stream, "%s\n", signature.constData()); | - |
| 200 | } | - |
| 201 | } | - |
| 202 | } | - |
| 203 | | - |
| 204 | static void qPrintDataTags(FILE *stream) | - |
| 205 | { | - |
| 206 | | - |
| 207 | QTestLog::setPrintAvailableTagsMode(); | - |
| 208 | | - |
| 209 | | - |
| 210 | QTestTable::globalTestTable(); | - |
| 211 | invokeMethod(QTest::currentTestObject, "initTestCase_data()"); | - |
| 212 | const QTestTable *gTable = QTestTable::globalTestTable(); | - |
| 213 | | - |
| 214 | const QMetaObject *currTestMetaObj = QTest::currentTestObject->metaObject(); | - |
| 215 | | - |
| 216 | | - |
| 217 | for (int i = 0; i < currTestMetaObj->methodCount(); ++i) { | - |
| 218 | QMetaMethod tf = currTestMetaObj->method(i); | - |
| 219 | | - |
| 220 | if (isValidSlot(tf)) { | - |
| 221 | | - |
| 222 | | - |
| 223 | QStringList localTags; | - |
| 224 | QTestTable table; | - |
| 225 | char *slot = qstrdup(tf.methodSignature().constData()); | - |
| 226 | slot[strlen(slot) - 2] = '\0'; | - |
| 227 | QByteArray member; | - |
| 228 | member.resize(qstrlen(slot) + qstrlen("_data()") + 1); | - |
| 229 | qsnprintf(member.data(), member.size(), "%s_data()", slot); | - |
| 230 | invokeMethod(QTest::currentTestObject, member.constData()); | - |
| 231 | const int dataCount = table.dataCount(); | - |
| 232 | localTags.reserve(dataCount); | - |
| 233 | for (int j = 0; j < dataCount; ++j) | - |
| 234 | localTags << QLatin1String(table.testData(j)->dataTag()); | - |
| 235 | | - |
| 236 | | - |
| 237 | if (gTable->dataCount() == 0) { | - |
| 238 | if (localTags.count() == 0) { | - |
| 239 | | - |
| 240 | fprintf(stream, "%s %s\n", currTestMetaObj->className(), slot); | - |
| 241 | } else { | - |
| 242 | | - |
| 243 | for (int k = 0; k < localTags.size(); ++k) | - |
| 244 | fprintf( | - |
| 245 | stream, "%s %s %s\n", | - |
| 246 | currTestMetaObj->className(), slot, localTags.at(k).toLatin1().data()); | - |
| 247 | } | - |
| 248 | } else { | - |
| 249 | for (int j = 0; j < gTable->dataCount(); ++j) { | - |
| 250 | if (localTags.count() == 0) { | - |
| 251 | | - |
| 252 | fprintf( | - |
| 253 | stream, "%s %s __global__ %s\n", | - |
| 254 | currTestMetaObj->className(), slot, gTable->testData(j)->dataTag()); | - |
| 255 | } else { | - |
| 256 | | - |
| 257 | | - |
| 258 | for (int k = 0; k < localTags.size(); ++k) | - |
| 259 | fprintf( | - |
| 260 | stream, "%s %s %s __global__ %s\n", currTestMetaObj->className(), slot, | - |
| 261 | localTags.at(k).toLatin1().data(), gTable->testData(j)->dataTag()); | - |
| 262 | } | - |
| 263 | } | - |
| 264 | } | - |
| 265 | | - |
| 266 | delete[] slot; | - |
| 267 | } | - |
| 268 | } | - |
| 269 | } | - |
| 270 | | - |
| 271 | static int qToInt(char *str) | - |
| 272 | { | - |
| 273 | char *pEnd; | - |
| 274 | int l = (int)strtol(str, &pEnd, 10); | - |
| 275 | if (*pEnd != 0) { | - |
| 276 | fprintf(stderr, "Invalid numeric parameter: '%s'\n", str); | - |
| 277 | exit(1); | - |
| 278 | } | - |
| 279 | return l; | - |
| 280 | } | - |
| 281 | | - |
| 282 | __attribute__((visibility("default"))) void qtest_qParseArgs(int argc, char *argv[], bool qml) | - |
| 283 | { | - |
| 284 | QTestLog::LogMode logFormat = QTestLog::Plain; | - |
| 285 | const char *logFilename = 0; | - |
| 286 | | - |
| 287 | QTest::testFunctions.clear(); | - |
| 288 | QTest::testTags.clear(); | - |
| 289 | | - |
| 290 | | - |
| 291 | | - |
| 292 | | - |
| 293 | | - |
| 294 | | - |
| 295 | const char *testOptions = | - |
| 296 | " New-style logging options:\n" | - |
| 297 | " -o filename,format : Output results to file in the specified format\n" | - |
| 298 | " Use - to output to stdout\n" | - |
| 299 | " Valid formats are:\n" | - |
| 300 | " txt : Plain text\n" | - |
| 301 | " csv : CSV format (suitable for benchmarks)\n" | - |
| 302 | " xunitxml : XML XUnit document\n" | - |
| 303 | " xml : XML document\n" | - |
| 304 | " lightxml : A stream of XML tags\n" | - |
| 305 | " teamcity : TeamCity format\n" | - |
| 306 | "\n" | - |
| 307 | " *** Multiple loggers can be specified, but at most one can log to stdout.\n" | - |
| 308 | "\n" | - |
| 309 | " Old-style logging options:\n" | - |
| 310 | " -o filename : Write the output into file\n" | - |
| 311 | " -txt : Output results in Plain Text\n" | - |
| 312 | " -csv : Output results in a CSV format (suitable for benchmarks)\n" | - |
| 313 | " -xunitxml : Output results as XML XUnit document\n" | - |
| 314 | " -xml : Output results as XML document\n" | - |
| 315 | " -lightxml : Output results as stream of XML tags\n" | - |
| 316 | " -teamcity : Output results in TeamCity format\n" | - |
| 317 | "\n" | - |
| 318 | " *** If no output file is specified, stdout is assumed.\n" | - |
| 319 | " *** If no output format is specified, -txt is assumed.\n" | - |
| 320 | "\n" | - |
| 321 | " Test log detail options:\n" | - |
| 322 | " -silent : Log failures and fatal errors only\n" | - |
| 323 | " -v1 : Log the start of each testfunction\n" | - |
| 324 | " -v2 : Log each QVERIFY/QCOMPARE/QTEST (implies -v1)\n" | - |
| 325 | " -vs : Log every signal emission and resulting slot invocations\n" | - |
| 326 | "\n" | - |
| 327 | " *** The -silent and -v1 options only affect plain text output.\n" | - |
| 328 | "\n" | - |
| 329 | " Testing options:\n" | - |
| 330 | " -functions : Returns a list of current testfunctions\n" | - |
| 331 | " -datatags : Returns a list of current data tags.\n" | - |
| 332 | " A global data tag is preceded by ' __global__ '.\n" | - |
| 333 | " -eventdelay ms : Set default delay for mouse and keyboard simulation to ms milliseconds\n" | - |
| 334 | " -keydelay ms : Set default delay for keyboard simulation to ms milliseconds\n" | - |
| 335 | " -mousedelay ms : Set default delay for mouse simulation to ms milliseconds\n" | - |
| 336 | " -maxwarnings n : Sets the maximum amount of messages to output.\n" | - |
| 337 | " 0 means unlimited, default: 2000\n" | - |
| 338 | " -nocrashhandler : Disables the crash handler. Useful for debugging crashes.\n" | - |
| 339 | "\n" | - |
| 340 | " Benchmarking options:\n" | - |
| 341 | | - |
| 342 | " -callgrind : Use callgrind to time benchmarks\n" | - |
| 343 | | - |
| 344 | | - |
| 345 | " -perf : Use Linux perf events to time benchmarks\n" | - |
| 346 | " -perfcounter name : Use the counter named 'name'\n" | - |
| 347 | " -perfcounterlist : Lists the counters available\n" | - |
| 348 | | - |
| 349 | | - |
| 350 | " -tickcounter : Use CPU tick counters to time benchmarks\n" | - |
| 351 | | - |
| 352 | " -eventcounter : Counts events received during benchmarks\n" | - |
| 353 | " -minimumvalue n : Sets the minimum acceptable measurement value\n" | - |
| 354 | " -minimumtotal n : Sets the minimum acceptable total for repeated executions of a test function\n" | - |
| 355 | " -iterations n : Sets the number of accumulation iterations.\n" | - |
| 356 | " -median n : Sets the number of median iterations.\n" | - |
| 357 | " -vb : Print out verbose benchmarking information.\n"; | - |
| 358 | | - |
| 359 | for (int i = 1; i < argc| TRUE | evaluated 1387 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 811 times by 1 testEvaluated by:- tst_selftests - unknown status
|
; ++i) { | 811-1387 |
| 360 | if (strcmp(argv[i], "-help") == 0| TRUE | never evaluated | | FALSE | evaluated 1387 times by 1 testEvaluated by:- tst_selftests - unknown status
|
|| strcmp(argv[i], "--help") == 0| TRUE | never evaluated | | FALSE | evaluated 1387 times by 1 testEvaluated by:- tst_selftests - unknown status
|
| 0-1387 |
| 361 | || strcmp(argv[i], "/?") == 0| TRUE | never evaluated | | FALSE | evaluated 1387 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-1387 |
| 362 | printf(" Usage: %s [options] [testfunction[:testdata]]...\n" | - |
| 363 | " By default, all testfunctions will be run.\n\n" | - |
| 364 | "%s", argv[0], testOptions); | - |
| 365 | | - |
| 366 | if (qml| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 367 | printf ("\n" | - |
| 368 | " QmlTest options:\n" | - |
| 369 | " -import dir : Specify an import directory.\n" | - |
| 370 | " -plugins dir : Specify a directory where to search for plugins.\n" | - |
| 371 | " -input dir/file : Specify the root directory for test cases or a single test case file.\n" | - |
| 372 | " -qtquick1 : Run with QtQuick 1 rather than QtQuick 2.\n" | - |
| 373 | " -translation file : Specify the translation file.\n" | - |
| 374 | ); | - |
| 375 | } never executed: end of block | 0 |
| 376 | | - |
| 377 | printf("\n" | - |
| 378 | " -help : This help\n"); | - |
| 379 | exit(0); never executed: exit(0); | 0 |
| 380 | } else if (strcmp(argv[i], "-functions") == 0| TRUE | never evaluated | | FALSE | evaluated 1387 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-1387 |
| 381 | if (qml| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 382 | QTest::printAvailableFunctions = true; | - |
| 383 | } never executed: end of block else { | 0 |
| 384 | qPrintTestSlots(stdout); | - |
| 385 | exit(0); never executed: exit(0); | 0 |
| 386 | } | - |
| 387 | } else if (strcmp(argv[i], "-datatags") == 0| TRUE | evaluated 4 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 1383 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 4-1383 |
| 388 | if (!qml| TRUE | evaluated 4 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | never evaluated |
) { | 0-4 |
| 389 | qPrintDataTags(stdout); | - |
| 390 | exit(0);executed 4 times by 1 test: exit(0);Executed by:- tst_selftests - unknown status
| 4 |
| 391 | } | - |
| 392 | } never executed: end of block else if (strcmp(argv[i], "-txt") == 0| TRUE | never evaluated | | FALSE | evaluated 1383 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-1383 |
| 393 | logFormat = QTestLog::Plain; | - |
| 394 | } never executed: end of block else if (strcmp(argv[i], "-csv") == 0| TRUE | evaluated 4 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 1379 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-1379 |
| 395 | logFormat = QTestLog::CSV; | - |
| 396 | }executed 4 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
else if (strcmp(argv[i], "-xunitxml") == 0| TRUE | evaluated 62 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 1317 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 4-1317 |
| 397 | logFormat = QTestLog::XunitXML; | - |
| 398 | }executed 62 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
else if (strcmp(argv[i], "-xml") == 0| TRUE | evaluated 62 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 1255 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 62-1255 |
| 399 | logFormat = QTestLog::XML; | - |
| 400 | }executed 62 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
else if (strcmp(argv[i], "-lightxml") == 0| TRUE | evaluated 62 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 1193 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 62-1193 |
| 401 | logFormat = QTestLog::LightXML; | - |
| 402 | }executed 62 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
else if (strcmp(argv[i], "-teamcity") == 0| TRUE | evaluated 58 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 1135 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 58-1135 |
| 403 | logFormat = QTestLog::TeamCity; | - |
| 404 | }executed 58 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
else if (strcmp(argv[i], "-silent") == 0| TRUE | evaluated 2 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 1133 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 2-1133 |
| 405 | QTestLog::setVerboseLevel(-1); | - |
| 406 | }executed 2 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
else if (strcmp(argv[i], "-v1") == 0| TRUE | evaluated 25 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 1108 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 2-1108 |
| 407 | QTestLog::setVerboseLevel(1); | - |
| 408 | }executed 25 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
else if (strcmp(argv[i], "-v2") == 0| TRUE | evaluated 50 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 1058 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 25-1058 |
| 409 | QTestLog::setVerboseLevel(2); | - |
| 410 | }executed 50 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
else if (strcmp(argv[i], "-vs") == 0| TRUE | never evaluated | | FALSE | evaluated 1058 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-1058 |
| 411 | QSignalDumper::startDump(); | - |
| 412 | } never executed: end of block else if (strcmp(argv[i], "-o") == 0| TRUE | evaluated 900 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 158 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-900 |
| 413 | if (i + 1 >= argc| TRUE | never evaluated | | FALSE | evaluated 900 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-900 |
| 414 | fprintf(stderr, "-o needs an extra parameter specifying the filename and optional format\n"); | - |
| 415 | exit(1); never executed: exit(1); | 0 |
| 416 | } | - |
| 417 | ++i; | - |
| 418 | | - |
| 419 | char *filename = new char[strlen(argv[i])+1]; | - |
| 420 | char *format = new char[strlen(argv[i])+1]; | - |
| 421 | if (sscanf(argv[i], "%[^,],%s", filename, format) == 1| TRUE | evaluated 154 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 746 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 154-746 |
| 422 | | - |
| 423 | logFilename = argv[i]; | - |
| 424 | }executed 154 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
else { | 154 |
| 425 | | - |
| 426 | if (strcmp(format, "txt") == 0| TRUE | evaluated 256 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 490 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) | 256-490 |
| 427 | logFormat = QTestLog::Plain;executed 256 times by 1 test: logFormat = QTestLog::Plain;Executed by:- tst_selftests - unknown status
| 256 |
| 428 | else if (strcmp(format, "csv") == 0| TRUE | evaluated 4 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 486 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) | 4-486 |
| 429 | logFormat = QTestLog::CSV;executed 4 times by 1 test: logFormat = QTestLog::CSV;Executed by:- tst_selftests - unknown status
| 4 |
| 430 | else if (strcmp(format, "lightxml") == 0| TRUE | evaluated 123 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 363 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) | 123-363 |
| 431 | logFormat = QTestLog::LightXML;executed 123 times by 1 test: logFormat = QTestLog::LightXML;Executed by:- tst_selftests - unknown status
| 123 |
| 432 | else if (strcmp(format, "xml") == 0| TRUE | evaluated 122 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 241 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) | 122-241 |
| 433 | logFormat = QTestLog::XML;executed 122 times by 1 test: logFormat = QTestLog::XML;Executed by:- tst_selftests - unknown status
| 122 |
| 434 | else if (strcmp(format, "xunitxml") == 0| TRUE | evaluated 153 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 88 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) | 88-153 |
| 435 | logFormat = QTestLog::XunitXML;executed 153 times by 1 test: logFormat = QTestLog::XunitXML;Executed by:- tst_selftests - unknown status
| 153 |
| 436 | else if (strcmp(format, "teamcity") == 0| TRUE | evaluated 88 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | never evaluated |
) | 0-88 |
| 437 | logFormat = QTestLog::TeamCityexecuted 88 times by 1 test: logFormat = QTestLog::TeamCity;Executed by:- tst_selftests - unknown status
executed 88 times by 1 test: logFormat = QTestLog::TeamCity;Executed by:- tst_selftests - unknown status
;executed 88 times by 1 test: logFormat = QTestLog::TeamCity;Executed by:- tst_selftests - unknown status
| 88 |
| 438 | else { | - |
| 439 | fprintf(stderr, "output format must be one of txt, csv, lightxml, xml, teamcity or xunitxml\n"); | - |
| 440 | exit(1); never executed: exit(1); | 0 |
| 441 | } | - |
| 442 | if (strcmp(filename, "-") == 0| TRUE | evaluated 291 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 455 times by 1 testEvaluated by:- tst_selftests - unknown status
|
&& QTestLog::loggerUsingStdout()| TRUE | never evaluated | | FALSE | evaluated 291 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-455 |
| 443 | fprintf(stderr, "only one logger can log to stdout\n"); | - |
| 444 | exit(1); never executed: exit(1); | 0 |
| 445 | } | - |
| 446 | QTestLog::addLogger(logFormat, filename); | - |
| 447 | }executed 746 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
| 746 |
| 448 | delete [] filename; | - |
| 449 | delete [] format; | - |
| 450 | }executed 900 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
else if (strcmp(argv[i], "-eventdelay") == 0| TRUE | never evaluated | | FALSE | evaluated 158 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-900 |
| 451 | if (i + 1 >= argc| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 452 | fprintf(stderr, "-eventdelay needs an extra parameter to indicate the delay(ms)\n"); | - |
| 453 | exit(1); never executed: exit(1); | 0 |
| 454 | } else { | - |
| 455 | QTest::eventDelay = qToInt(argv[++i]); | - |
| 456 | } never executed: end of block | 0 |
| 457 | } else if (strcmp(argv[i], "-keydelay") == 0| TRUE | never evaluated | | FALSE | evaluated 158 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-158 |
| 458 | if (i + 1 >= argc| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 459 | fprintf(stderr, "-keydelay needs an extra parameter to indicate the delay(ms)\n"); | - |
| 460 | exit(1); never executed: exit(1); | 0 |
| 461 | } else { | - |
| 462 | QTest::keyDelay = qToInt(argv[++i]); | - |
| 463 | } never executed: end of block | 0 |
| 464 | } else if (strcmp(argv[i], "-mousedelay") == 0| TRUE | never evaluated | | FALSE | evaluated 158 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-158 |
| 465 | if (i + 1 >= argc| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 466 | fprintf(stderr, "-mousedelay needs an extra parameter to indicate the delay(ms)\n"); | - |
| 467 | exit(1); never executed: exit(1); | 0 |
| 468 | } else { | - |
| 469 | QTest::mouseDelay = qToInt(argv[++i]); | - |
| 470 | } never executed: end of block | 0 |
| 471 | } else if (strcmp(argv[i], "-maxwarnings") == 0| TRUE | never evaluated | | FALSE | evaluated 158 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-158 |
| 472 | if (i + 1 >= argc| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 473 | fprintf(stderr, "-maxwarnings needs an extra parameter with the amount of warnings\n"); | - |
| 474 | exit(1); never executed: exit(1); | 0 |
| 475 | } else { | - |
| 476 | QTestLog::setMaxWarnings(qToInt(argv[++i])); | - |
| 477 | } never executed: end of block | 0 |
| 478 | } else if (strcmp(argv[i], "-nocrashhandler") == 0| TRUE | never evaluated | | FALSE | evaluated 158 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-158 |
| 479 | QTest::noCrashHandler = true; | - |
| 480 | | - |
| 481 | } never executed: end of block else if (strcmp(argv[i], "-callgrind") == 0| TRUE | never evaluated | | FALSE | evaluated 158 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-158 |
| 482 | if (QBenchmarkValgrindUtils::haveValgrind()| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 483 | if (QFileInfo(QDir::currentPath()).isWritable()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 484 | QBenchmarkGlobalData::current->setMode(QBenchmarkGlobalData::CallgrindParentProcess); | - |
| 485 | } never executed: end of block else { | 0 |
| 486 | fprintf(stderr, "WARNING: Current directory not writable. Using the walltime measurer.\n"); | - |
| 487 | } never executed: end of block | 0 |
| 488 | else { | - |
| 489 | fprintf(stderr, "WARNING: Valgrind not found or too old. Make sure it is installed and in your path. " | - |
| 490 | "Using the walltime measurer.\n"); | - |
| 491 | } never executed: end of block | 0 |
| 492 | } else if (strcmp(argv[i], "-callgrindchild") == 0| TRUE | never evaluated | | FALSE | evaluated 158 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-158 |
| 493 | QBenchmarkGlobalData::current->setMode(QBenchmarkGlobalData::CallgrindChildProcess); | - |
| 494 | QBenchmarkGlobalData::current->callgrindOutFileBase = | - |
| 495 | QBenchmarkValgrindUtils::outFileBase(); | - |
| 496 | | - |
| 497 | | - |
| 498 | } never executed: end of block else if (strcmp(argv[i], "-perf") == 0| TRUE | never evaluated | | FALSE | evaluated 158 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-158 |
| 499 | if (QBenchmarkPerfEventsMeasurer::isAvailable()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 500 | | - |
| 501 | QBenchmarkGlobalData::current->setMode(QBenchmarkGlobalData::PerfCounter); | - |
| 502 | } never executed: end of block else { | 0 |
| 503 | fprintf(stderr, "WARNING: Linux perf events not available. Using the walltime measurer.\n"); | - |
| 504 | } never executed: end of block | 0 |
| 505 | } else if (strcmp(argv[i], "-perfcounter") == 0| TRUE | never evaluated | | FALSE | evaluated 158 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-158 |
| 506 | if (i + 1 >= argc| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 507 | fprintf(stderr, "-perfcounter needs an extra parameter with the name of the counter\n"); | - |
| 508 | exit(1); never executed: exit(1); | 0 |
| 509 | } else { | - |
| 510 | QBenchmarkPerfEventsMeasurer::setCounter(argv[++i]); | - |
| 511 | } never executed: end of block | 0 |
| 512 | } else if (strcmp(argv[i], "-perfcounterlist") == 0| TRUE | never evaluated | | FALSE | evaluated 158 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-158 |
| 513 | QBenchmarkPerfEventsMeasurer::listCounters(); | - |
| 514 | exit(0); never executed: exit(0); | 0 |
| 515 | | - |
| 516 | | - |
| 517 | } else if (strcmp(argv[i], "-tickcounter") == 0| TRUE | never evaluated | | FALSE | evaluated 158 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-158 |
| 518 | QBenchmarkGlobalData::current->setMode(QBenchmarkGlobalData::TickCounter); | - |
| 519 | | - |
| 520 | } never executed: end of block else if (strcmp(argv[i], "-eventcounter") == 0| TRUE | evaluated 73 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 85 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-85 |
| 521 | QBenchmarkGlobalData::current->setMode(QBenchmarkGlobalData::EventCounter); | - |
| 522 | }executed 73 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
else if (strcmp(argv[i], "-minimumvalue") == 0| TRUE | evaluated 2 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 83 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 2-83 |
| 523 | if (i + 1 >= argc| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-2 |
| 524 | fprintf(stderr, "-minimumvalue needs an extra parameter to indicate the minimum time(ms)\n"); | - |
| 525 | exit(1); never executed: exit(1); | 0 |
| 526 | } else { | - |
| 527 | QBenchmarkGlobalData::current->walltimeMinimum = qToInt(argv[++i]); | - |
| 528 | }executed 2 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
| 2 |
| 529 | } else if (strcmp(argv[i], "-minimumtotal") == 0| TRUE | never evaluated | | FALSE | evaluated 83 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-83 |
| 530 | if (i + 1 >= argc| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 531 | fprintf(stderr, "-minimumtotal needs an extra parameter to indicate the minimum total measurement\n"); | - |
| 532 | exit(1); never executed: exit(1); | 0 |
| 533 | } else { | - |
| 534 | QBenchmarkGlobalData::current->minimumTotal = qToInt(argv[++i]); | - |
| 535 | } never executed: end of block | 0 |
| 536 | } else if (strcmp(argv[i], "-iterations") == 0| TRUE | evaluated 19 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 64 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 19-64 |
| 537 | if (i + 1 >= argc| TRUE | never evaluated | | FALSE | evaluated 19 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-19 |
| 538 | fprintf(stderr, "-iterations needs an extra parameter to indicate the number of iterations\n"); | - |
| 539 | exit(1); never executed: exit(1); | 0 |
| 540 | } else { | - |
| 541 | QBenchmarkGlobalData::current->iterationCount = qToInt(argv[++i]); | - |
| 542 | }executed 19 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
| 19 |
| 543 | } else if (strcmp(argv[i], "-median") == 0| TRUE | never evaluated | | FALSE | evaluated 64 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-64 |
| 544 | if (i + 1 >= argc| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 545 | fprintf(stderr, "-median needs an extra parameter to indicate the number of median iterations\n"); | - |
| 546 | exit(1); never executed: exit(1); | 0 |
| 547 | } else { | - |
| 548 | QBenchmarkGlobalData::current->medianIterationCount = qToInt(argv[++i]); | - |
| 549 | } never executed: end of block | 0 |
| 550 | | - |
| 551 | } else if (strcmp(argv[i], "-vb") == 0| TRUE | never evaluated | | FALSE | evaluated 64 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-64 |
| 552 | QBenchmarkGlobalData::current->verboseOutput = true; | - |
| 553 | } never executed: end of block else if (argv[i][0] == '-'| TRUE | never evaluated | | FALSE | evaluated 64 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-64 |
| 554 | fprintf(stderr, "Unknown option: '%s'\n\n%s", argv[i], testOptions); | - |
| 555 | if (qml| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 556 | fprintf(stderr, "\nqmltest related options:\n" | - |
| 557 | " -import : Specify an import directory.\n" | - |
| 558 | " -plugins : Specify a directory where to search for plugins.\n" | - |
| 559 | " -input : Specify the root directory for test cases.\n" | - |
| 560 | " -qtquick1 : Run with QtQuick 1 rather than QtQuick 2.\n" | - |
| 561 | ); | - |
| 562 | } never executed: end of block | 0 |
| 563 | | - |
| 564 | fprintf(stderr, "\n" | - |
| 565 | " -help : This help\n"); | - |
| 566 | exit(1); never executed: exit(1); | 0 |
| 567 | } else if (qml){ | - |
| 568 | | - |
| 569 | | - |
| 570 | int colon = -1; | - |
| 571 | int offset; | - |
| 572 | for (offset = 0; *(| TRUE | evaluated 865 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 37 times by 1 testEvaluated by:- tst_selftests - unknown status
|
argv[i]+offset)| TRUE | evaluated 865 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 37 times by 1 testEvaluated by:- tst_selftests - unknown status
|
; ++offset) { | 37-865 |
| 573 | if (*(| TRUE | evaluated 27 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 838 times by 1 testEvaluated by:- tst_selftests - unknown status
|
argv[i]+offset) == ':'| TRUE | evaluated 27 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 838 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 27-838 |
| 574 | if (*(| TRUE | never evaluated | | FALSE | evaluated 27 times by 1 testEvaluated by:- tst_selftests - unknown status
|
argv[i]+offset+1) == ':'| TRUE | never evaluated | | FALSE | evaluated 27 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-27 |
| 575 | | - |
| 576 | | - |
| 577 | ++offset; | - |
| 578 | } never executed: end of block else { | 0 |
| 579 | colon = offset; | - |
| 580 | break;executed 27 times by 1 test: break;Executed by:- tst_selftests - unknown status
| 27 |
| 581 | } | - |
| 582 | } | - |
| 583 | }executed 838 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
| 838 |
| 584 | if (colon == -1| TRUE | evaluated 37 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 27 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 27-37 |
| 585 | QTest::testFunctions += QString::fromLatin1(argv[i]); | - |
| 586 | QTest::testTags += QString(); | - |
| 587 | }executed 37 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
else { | 37 |
| 588 | QTest::testFunctions += | - |
| 589 | QString::fromLatin1(argv[i], colon); | - |
| 590 | QTest::testTags += | - |
| 591 | QString::fromLatin1(argv[i] + colon+ 1); | - |
| } | |
| } else { | |
| if (!QTest::testFuncs) { | |
| QTest::testFuncs = new QTest::TestFunction[512]; | |
| } | |
| | |
| int colon = -1; | |
| char buf[512], *data=0; | |
| int off; | |
| for (off = 0; *(argv[i]+off); ++off) { | |
| if (*(argv[i]+off) == ':') { | |
| colon = off; | |
| break; | |
| } | |
| } | |
| if (colon != -1) { | |
| data = qstrdup(argv[i]+colon +1); | |
| } | |
| qsnprintf(buf, qMin(512, off + 1), "%s", argv[i]); | |
| qsnprintf(buf+ off, qMin(512 - off, 3), "()"); | |
| int idx = QTest::currentTestObject->metaObject()->indexOfMethod(buf); | |
| if (idx < 0 || !isValidSlot(QTest::currentTestObject->metaObject()->method(idx))) { | |
| fprintf(stderr, "Unknown test function: '%s'. Possible matches:\n", buf); | |
| buf[off] = 0; | |
| qPrintTestSlots(stderr, buf); | |
| fprintf(stderr, "\n%s -functions\nlists all available test functions.\n", argv[0]); | |
| exit(1); | |
| } | |
| testFuncs[testFuncCount].set(idx, data); | |
| testFuncCount++; | |
| do { if (!(QTest::testFuncCount < 512)) qt_assert("QTest::testFuncCount < 512",__FILE__,1991); | |
| 592 | }executed 27 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
| 27 |
| 593 | while (0);} | - |
| 594 | } | - |
| 595 | | - |
| 596 | bool installedTestCoverage = installCoverageTool(QTestResult::currentAppName(), QTestResult::currentTestObjectName()); | - |
| 597 | QTestLog::setInstalledTestCoverage(installedTestCoverage); | - |
| 598 | | - |
| 599 | | - |
| 600 | | - |
| 601 | | - |
| 602 | if (QTestLog::loggerCount() == 0| TRUE | evaluated 847 times by 506 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| | FALSE | evaluated 473 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) | 473-847 |
| 603 | QTestLog::addLogger(logFormat, logFilename);executed 847 times by 506 tests: QTestLog::addLogger(logFormat, logFilename);Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 847 |
| 604 | }executed 1320 times by 506 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 1320 |
| 605 | | - |
| 606 | QBenchmarkResult qMedian(const QVector<QBenchmarkResult> &container) | - |
| 607 | { | - |
| 608 | const int count = container.count(); | - |
| 609 | if (count == 0) | - |
| 610 | return QBenchmarkResult(); | - |
| 611 | | - |
| 612 | if (count == 1) | - |
| 613 | return container.front(); | - |
| 614 | | - |
| 615 | QVector<QBenchmarkResult> containerCopy = container; | - |
| 616 | std::sort(containerCopy.begin(), containerCopy.end()); | - |
| 617 | | - |
| 618 | const int middle = count / 2; | - |
| 619 | | - |
| 620 | | - |
| 621 | return containerCopy.at(middle); | - |
| 622 | } | - |
| 623 | | - |
| 624 | struct QTestDataSetter | - |
| 625 | { | - |
| 626 | QTestDataSetter(QTestData *data) | - |
| 627 | { | - |
| 628 | QTestResult::setCurrentTestData(data); | - |
| 629 | } | - |
| 630 | ~QTestDataSetter() | - |
| 631 | { | - |
| 632 | QTestResult::setCurrentTestData(0); | - |
| 633 | } | - |
| 634 | }; | - |
| 635 | | - |
| 636 | namespace { | - |
| 637 | | - |
| 638 | qreal addResult(qreal current, const QBenchmarkResult& r) | - |
| 639 | { | - |
| 640 | return current + r.value; | - |
| 641 | } | - |
| 642 | | - |
| 643 | } | - |
| 644 | | - |
| staticvoid qInvokeTestMethodDataEntryTestMethods::invokeTestOnData(char *slotint index) const | |
| 646 | { | - |
| 647 | | - |
| 648 | | - |
| 649 | bool isBenchmark = false; | - |
| 650 | int i = (| TRUE | evaluated 126116 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| | FALSE | evaluated 494 times by 1 testEvaluated by:- tst_selftests - unknown status
|
QBenchmarkGlobalData::current->measurer->needsWarmupIteration())| TRUE | evaluated 126116 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| | FALSE | evaluated 494 times by 1 testEvaluated by:- tst_selftests - unknown status
|
? -1 : 0; | 494-126116 |
| 651 | | - |
| 652 | QVector<QBenchmarkResult> results; | - |
| 653 | bool minimumTotalReached = false; | - |
| 654 | do { | - |
| 655 | QBenchmarkTestMethodData::current->beginDataRun(); | - |
| 656 | | - |
| 657 | | - |
| 658 | bool invokeOk; | - |
| 659 | do { | - |
| 660 | invokeMethodif (m_initMethod.isValid()| TRUE | evaluated 14076 times by 100 testsEvaluated by:- tst_LargeFile
- tst_QAbstractButton
- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QCheckBox
- tst_QClipboard
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusMetaObject
- tst_QDBusPendingReply
- tst_QDBusReply
- tst_QDBusServiceWatcher
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QDoubleSpinBox
- tst_QFile
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| | FALSE | evaluated 112554 times by 403 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- ...
|
) | 14076-112554 |
| 661 | m_initMethod.invokeexecuted 14076 times by 100 tests: m_initMethod.invoke(QTest::currentTestObject, Qt::DirectConnection);Executed by:- tst_LargeFile
- tst_QAbstractButton
- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QCheckBox
- tst_QClipboard
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusMetaObject
- tst_QDBusPendingReply
- tst_QDBusReply
- tst_QDBusServiceWatcher
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QDoubleSpinBox
- tst_QFile
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
executed 14076 times by 100 tests: m_initMethod.invoke(QTest::currentTestObject, Qt::DirectConnection);Executed by:- tst_LargeFile
- tst_QAbstractButton
- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QCheckBox
- tst_QClipboard
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusMetaObject
- tst_QDBusPendingReply
- tst_QDBusReply
- tst_QDBusServiceWatcher
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QDoubleSpinBox
- tst_QFile
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
(QTest::currentTestObject, "init()"Qt::DirectConnection);executed 14076 times by 100 tests: m_initMethod.invoke(QTest::currentTestObject, Qt::DirectConnection);Executed by:- tst_LargeFile
- tst_QAbstractButton
- tst_QAbstractItemModel
- tst_QAccessibility
- tst_QCheckBox
- tst_QClipboard
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusMetaObject
- tst_QDBusPendingReply
- tst_QDBusReply
- tst_QDBusServiceWatcher
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirModel
- tst_QDoubleSpinBox
- tst_QFile
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 14076 |
| 662 | if (QTestResult::skipCurrentTest()| TRUE | evaluated 75 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 126555 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
|| QTestResult::currentTestFailed()| TRUE | evaluated 75 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 126480 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
) | 75-126555 |
| 663 | break;executed 150 times by 1 test: break;Executed by:- tst_selftests - unknown status
| 150 |
| 664 | | - |
| 665 | QBenchmarkTestMethodData::current->result = QBenchmarkResult(); | - |
| 666 | QBenchmarkTestMethodData::current->resultAccepted = false; | - |
| 667 | | - |
| 668 | QBenchmarkGlobalData::current->context.tag = | - |
| 669 | QLatin1String( | - |
| 670 | QTestResult::currentDataTag() | - |
| 671 | ? QTestResult::currentDataTag() : ""); | - |
| 672 | | - |
| 673 | invokeOk = QMetaObject::invokeMethodm_methods[index].invoke(QTest::currentTestObject, slot, Qt::DirectConnection); | - |
| 674 | if (!invokeOk| TRUE | never evaluated | | FALSE | evaluated 126398 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
) | 0-126398 |
| 675 | QTestResult::addFailure("Unable to execute slot", __FILE__, 2074805); never executed: QTestResult::addFailure("Unable to execute slot", __FILE__, 805); | 0 |
| 676 | | - |
| 677 | isBenchmark = QBenchmarkTestMethodData::current->isBenchmark(); | - |
| 678 | | - |
| 679 | QTestResult::finishedCurrentTestData(); | - |
| 680 | | - |
| 681 | invokeMethodif (m_cleanupMethod.isValid()| TRUE | evaluated 32781 times by 104 testsEvaluated by:- tst_LargeFile
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QCheckBox
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusThreading
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDialog
- tst_QFile
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QFtp
- tst_QGraphicsProxyWidget
- ...
| | FALSE | evaluated 93617 times by 399 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAction
- tst_QAlgorithms
- tst_QAnimationGroup
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QAtomicInt
- tst_QAtomicInteger_char
- ...
|
) | 32781-93617 |
| 682 | m_cleanupMethod.invokeexecuted 32781 times by 104 tests: m_cleanupMethod.invoke(QTest::currentTestObject, Qt::DirectConnection);Executed by:- tst_LargeFile
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QCheckBox
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusThreading
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDialog
- tst_QFile
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QFtp
- tst_QGraphicsProxyWidget
- ...
executed 32781 times by 104 tests: m_cleanupMethod.invoke(QTest::currentTestObject, Qt::DirectConnection);Executed by:- tst_LargeFile
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QCheckBox
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusThreading
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDialog
- tst_QFile
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QFtp
- tst_QGraphicsProxyWidget
- ...
(QTest::currentTestObject, "cleanup()"Qt::DirectConnection);executed 32781 times by 104 tests: m_cleanupMethod.invoke(QTest::currentTestObject, Qt::DirectConnection);Executed by:- tst_LargeFile
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QActionGroup
- tst_QApplication
- tst_QBoxLayout
- tst_QCheckBox
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusThreading
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDialog
- tst_QFile
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontDialog
- tst_QFormLayout
- tst_QFtp
- tst_QGraphicsProxyWidget
- ...
| 32781 |
| 683 | | - |
| 684 | | - |
| 685 | if (!isBenchmark| TRUE | evaluated 125978 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| | FALSE | evaluated 420 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
|
) | 420-125978 |
| 686 | QTestResult::finishedCurrentTestDataCleanup();executed 125978 times by 502 tests: QTestResult::finishedCurrentTestDataCleanup();Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| 125978 |
| 687 | | - |
| 688 | | - |
| 689 | | - |
| 690 | | - |
| 691 | | - |
| 692 | }executed 126398 times by 502 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
while (invokeOk| TRUE | evaluated 126398 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| | FALSE | never evaluated |
&& isBenchmark| TRUE | evaluated 420 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| | FALSE | evaluated 125978 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
| 0-126398 |
| 693 | && QBenchmarkTestMethodData::current->resultsAccepted() == false| TRUE | evaluated 12 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 408 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
|
| 12-408 |
| 694 | && !QTestResult::skipCurrentTest()| TRUE | evaluated 12 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | never evaluated |
&& !QTestResult::currentTestFailed()| TRUE | evaluated 12 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | never evaluated |
); | 0-12 |
| 695 | | - |
| 696 | QBenchmarkTestMethodData::current->endDataRun(); | - |
| 697 | if (!QTestResult::skipCurrentTest()| TRUE | evaluated 125366 times by 501 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| | FALSE | evaluated 1170 times by 52 testsEvaluated by:- tst_Compiler
- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QByteArray
- tst_QDBusConnection_NoApplication
- tst_QDBusLocalCalls
- tst_QDataStream
- tst_QDateTime
- tst_QDialog
- tst_QDir
- tst_QDockWidget
- tst_QFileInfo
- tst_QFiledialog
- tst_QFont
- tst_QFontDatabase
- tst_QFtp
- tst_QGLThreads
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QImageReader
- tst_QItemView
- tst_QLockFile
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- ...
|
&& !QTestResult::currentTestFailed()| TRUE | evaluated 125198 times by 501 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| | FALSE | evaluated 168 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 168-125366 |
| 698 | if (i > -1| TRUE | evaluated 380 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| | FALSE | evaluated 124818 times by 501 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
) | 380-124818 |
| 699 | results.append(QBenchmarkTestMethodData::current->result);executed 380 times by 2 tests: results.append(QBenchmarkTestMethodData::current->result);Executed by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| 380 |
| 700 | | - |
| 701 | if (isBenchmark| TRUE | evaluated 290 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| | FALSE | evaluated 124908 times by 501 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
&& QBenchmarkGlobalData::current->verboseOutput| TRUE | never evaluated | | FALSE | evaluated 290 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
|
) { | 0-124908 |
| 702 | if (i == -1| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 703 | QTestLog::info(QString(QString::fromLatin1("warmup stage result : %1") .arg(QBenchmarkTestMethodData::current->result.value)).toLocal8Bit().constData() | - |
| 704 | | - |
| 705 | , 0, 0); | - |
| 706 | } never executed: end of block else { | 0 |
| 707 | QTestLog::info(QString(QString::fromLatin1("accumulation stage result: %1") .arg(QBenchmarkTestMethodData::current->result.value)).toLocal8Bit().constData() | - |
| 708 | | - |
| 709 | , 0, 0); | - |
| 710 | } never executed: end of block | 0 |
| 711 | } | - |
| 712 | }executed 125198 times by 501 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| 125198 |
| 713 | | - |
| 714 | | - |
| 715 | if (QBenchmarkGlobalData::current->minimumTotal == -1| TRUE | evaluated 126536 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| | FALSE | never evaluated |
) { | 0-126536 |
| 716 | minimumTotalReached = true; | - |
| 717 | }executed 126536 times by 502 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
else { | 126536 |
| 718 | const qreal total = std::accumulate(results.begin(), results.end(), 0.0, addResult); | - |
| 719 | minimumTotalReached = (total >= QBenchmarkGlobalData::current->minimumTotal); | - |
| 720 | } never executed: end of block | 0 |
| 721 | } while (isBenchmark| TRUE | evaluated 408 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| | FALSE | evaluated 126128 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
| 408-126128 |
| 722 | && ((++| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 400 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
|
i < QBenchmarkGlobalData::current->adjustMedianIterationCount())| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 400 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
|
|| !minimumTotalReached| TRUE | never evaluated | | FALSE | evaluated 400 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
|
) | 0-400 |
| 723 | && !QTestResult::skipCurrentTest()| TRUE | evaluated 8 times by 1 test | | FALSE | never evaluated |
&& !QTestResult::currentTestFailed()| TRUE | evaluated 8 times by 1 test | | FALSE | never evaluated |
); | 0-8 |
| 724 | | - |
| 725 | | - |
| 726 | if (isBenchmark| TRUE | evaluated 400 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| | FALSE | evaluated 126128 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
) { | 400-126128 |
| 727 | bool testPassed = !QTestResult::skipCurrentTest()| TRUE | evaluated 375 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| | FALSE | evaluated 25 times by 1 testEvaluated by:- tst_selftests - unknown status
|
&& !QTestResult::currentTestFailed()| TRUE | evaluated 282 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| | FALSE | evaluated 93 times by 1 testEvaluated by:- tst_selftests - unknown status
|
; | 25-375 |
| 728 | QTestResult::finishedCurrentTestDataCleanup(); | - |
| 729 | | - |
| 730 | if (testPassed| TRUE | evaluated 282 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| | FALSE | evaluated 118 times by 1 testEvaluated by:- tst_selftests - unknown status
|
&& QBenchmarkTestMethodData::current->resultsAccepted()| TRUE | evaluated 282 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| | FALSE | never evaluated |
) | 0-282 |
| 731 | QTestLog::addBenchmarkResult(qMedian(results));executed 282 times by 2 tests: QTestLog::addBenchmarkResult(qMedian(results));Executed by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| 282 |
| 732 | }executed 400 times by 2 tests: end of blockExecuted by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| 400 |
| 733 | }executed 126528 times by 502 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| 126528 |
| 734 | | - |
| 735 | class WatchDog : public QThread | - |
| 736 | { | - |
| 737 | public: | - |
| 738 | WatchDog() | - |
| 739 | { | - |
| 740 | QMutexLocker locker(&mutex); | - |
| 741 | timeout.store(-1); | - |
| 742 | start(); | - |
| 743 | waitCondition.wait(&mutex); | - |
| 744 | } | - |
| 745 | ~WatchDog() { | - |
| 746 | { | - |
| 747 | QMutexLocker locker(&mutex); | - |
| 748 | timeout.store(0); | - |
| 749 | waitCondition.wakeAll(); | - |
| 750 | } | - |
| 751 | wait(); | - |
| 752 | } | - |
| 753 | | - |
| 754 | void beginTest() { | - |
| 755 | QMutexLocker locker(&mutex); | - |
| 756 | timeout.store(defaultTimeout()); | - |
| 757 | waitCondition.wakeAll(); | - |
| 758 | } | - |
| 759 | | - |
| 760 | void testFinished() { | - |
| 761 | QMutexLocker locker(&mutex); | - |
| 762 | timeout.store(-1); | - |
| 763 | waitCondition.wakeAll(); | - |
| 764 | } | - |
| 765 | | - |
| 766 | void run() { | - |
| 767 | QMutexLocker locker(&mutex); | - |
| 768 | waitCondition.wakeAll(); | - |
| 769 | while (1) { | - |
| 770 | int t = timeout.load(); | - |
| 771 | if (!t| TRUE | evaluated 1263 times by 508 testsEvaluated by:- tst_collections - unknown status
- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- tst_largefile - unknown status
- tst_modeltest - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_q_func_info - unknown status
- tst_qabstractanimation - unknown status
- tst_qabstractbutton - unknown status
- tst_qabstractfileengine - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qabstractprintdialog - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qabstractscrollarea - unknown status
- tst_qabstractslider - unknown status
- tst_qabstractsocket - unknown status
- tst_qabstractspinbox - unknown status
- tst_qabstracttextdocumentlayout - unknown status
- tst_qaccessibility - unknown status
- tst_qaction - unknown status
- ...
| | FALSE | evaluated 221322 times by 508 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
|
) | 1263-221322 |
| 772 | break;executed 1263 times by 508 tests: break;Executed by:- tst_collections - unknown status
- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- tst_largefile - unknown status
- tst_modeltest - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_q_func_info - unknown status
- tst_qabstractanimation - unknown status
- tst_qabstractbutton - unknown status
- tst_qabstractfileengine - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qabstractprintdialog - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qabstractscrollarea - unknown status
- tst_qabstractslider - unknown status
- tst_qabstractsocket - unknown status
- tst_qabstractspinbox - unknown status
- tst_qabstracttextdocumentlayout - unknown status
- tst_qaccessibility - unknown status
- tst_qaction - unknown status
- ...
| 1263 |
| 773 | if (!(__builtin_expect(!!(!| TRUE | never evaluated | | FALSE | evaluated 221265 times by 901 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- ...
|
waitCondition.wait(&mutex, t)), false)| TRUE | never evaluated | | FALSE | evaluated 221265 times by 901 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- ...
|
) { | 0-221265 |
| 774 | stackTrace(); | - |
| 775 | QMessageLogger(__FILE__, 2173905, __PRETTY_FUNCTION__).fatal("Test function timed out"); | - |
| 776 | } never executed: end of block | 0 |
| 777 | }executed 221265 times by 901 tests: end of blockExecuted by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- ...
| 221265 |
| 778 | }executed 1263 times by 508 tests: end of blockExecuted by:- tst_collections - unknown status
- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- tst_largefile - unknown status
- tst_modeltest - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_q_func_info - unknown status
- tst_qabstractanimation - unknown status
- tst_qabstractbutton - unknown status
- tst_qabstractfileengine - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qabstractprintdialog - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qabstractscrollarea - unknown status
- tst_qabstractslider - unknown status
- tst_qabstractsocket - unknown status
- tst_qabstractspinbox - unknown status
- tst_qabstracttextdocumentlayout - unknown status
- tst_qaccessibility - unknown status
- tst_qaction - unknown status
- ...
| 1263 |
| 779 | | - |
| 780 | private: | - |
| 781 | QBasicAtomicInt timeout; | - |
| 782 | QMutex mutex; | - |
| 783 | QWaitCondition waitCondition; | - |
| 784 | }; | - |
| staticbool qInvokeTestMethodTestMethods::invokeTest(const char *slotNameint index, const char *data, WatchDog *watchDog) { | |
| doconst | |
| 786 | { | - |
| 787 | if (!(slotName)) qt_assert("slotName",__FILE__,2196); } while (0);QBenchmarkTestMethodData benchmarkData; | - |
| 788 | QBenchmarkTestMethodData::current = &benchmarkData; | - |
| 789 | | - |
| 790 | const QByteArray &name = m_methods[index].name(); | - |
| 791 | QBenchmarkGlobalData::current->context.slotName = QLatin1String(slotNamename) + QLatin1String("()"); | - |
| 792 | | - |
| 793 | char member[512]; | - |
| 794 | QTestTable table; | - |
| | |
| char *slot = qstrdup(slotName); | |
| slot[strlen(slot) - 2] = '\0'; | |
| 795 | | - |
| 796 | QTestResult::setCurrentTestFunction(slot);name.constData()); | - |
| 797 | | - |
| 798 | const QTestTable *gTable = QTestTable::globalTestTable(); | - |
| 799 | const int globalDataCount = gTable->dataCount(); | - |
| 800 | int curGlobalDataIndex = 0; | - |
| 801 | | - |
| 802 | | - |
| 803 | do { | - |
| 804 | if (!gTable->isEmpty()| TRUE | evaluated 1197 times by 15 testsEvaluated by:- tst_QDBusLocalCalls
- tst_QDnsLookup
- tst_QFtp
- tst_QHostInfo
- tst_QSqlDriver
- tst_QSqlRelationalTableModel
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_Utf8
- tst_qdbusxml2cpp
- tst_selftests - unknown status
| | FALSE | evaluated 12891 times by 488 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
) | 1197-12891 |
| 805 | QTestResult::setCurrentGlobalTestData(gTable->testData(curGlobalDataIndex));executed 1197 times by 15 tests: QTestResult::setCurrentGlobalTestData(gTable->testData(curGlobalDataIndex));Executed by:- tst_QDBusLocalCalls
- tst_QDnsLookup
- tst_QFtp
- tst_QHostInfo
- tst_QSqlDriver
- tst_QSqlRelationalTableModel
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_Utf8
- tst_qdbusxml2cpp
- tst_selftests - unknown status
| 1197 |
| 806 | | - |
| 807 | if (curGlobalDataIndex == 0| TRUE | evaluated 13256 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| | FALSE | evaluated 832 times by 12 testsEvaluated by:- tst_QDBusLocalCalls
- tst_QDnsLookup
- tst_QFtp
- tst_QHostInfo
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_Utf8
- tst_qdbusxml2cpp
- tst_selftests - unknown status
|
) { | 832-13256 |
| 808 | qsnprintf(member, 512, "%s_data()", slot);name.constData()); | - |
| 809 | invokeMethod(QTest::currentTestObject, member); | - |
| 810 | }executed 13256 times by 502 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| 13256 |
| 811 | | - |
| 812 | bool foundFunction = false; | - |
| 813 | if (!QTestResult::skipCurrentTest()| TRUE | evaluated 13851 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| | FALSE | evaluated 237 times by 12 testsEvaluated by:- tst_QCssParser
- tst_QFtp
- tst_QMimeDatabase
- tst_QNetworkSession
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlTableModel
- tst_QSslSocket
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextScriptEngine
- tst_selftests - unknown status
|
) { | 237-13851 |
| 814 | int curDataIndex = 0; | - |
| 815 | const int dataCount = table.dataCount(); | - |
| 816 | | - |
| 817 | | - |
| 818 | if (data| TRUE | evaluated 27 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 13824 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
&& !dataCount| TRUE | never evaluated | | FALSE | evaluated 27 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-13824 |
| 819 | | - |
| 820 | if (!*data| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 821 | data = 0; never executed: data = 0; | 0 |
| 822 | else { | - |
| 823 | fprintf(stderr, "Unknown testdata for function %s:(): '%s'\n", slotName, name.constData(), data); | - |
| 824 | fprintf(stderr, "Function has no testdata.\n"); | - |
| 825 | return never executed: return false; false;never executed: return false; | 0 |
| 826 | } | - |
| 827 | } | - |
| 828 | | - |
| 829 | | - |
| 830 | do { | - |
| 831 | QTestResult::setSkipCurrentTest(false); | - |
| 832 | QTestResult::setBlacklistCurrentTest(false); | - |
| 833 | if (!data| TRUE | evaluated 126583 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| | FALSE | evaluated 29 times by 1 testEvaluated by:- tst_selftests - unknown status
|
|| !qstrcmp(data, table.testData(curDataIndex)->dataTag())| TRUE | evaluated 27 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 2 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 2-126583 |
| 834 | foundFunction = true; | - |
| 835 | | - |
| 836 | QTestPrivate::checkBlackLists(slot,name.constData(), dataCount ? table.testData(curDataIndex)->dataTag() : 0); | - |
| 837 | | - |
| 838 | QTestDataSetter s(curDataIndex >= dataCount ? static_cast<QTestData *>(0) | - |
| 839 | : table.testData(curDataIndex)); | - |
| 840 | | - |
| 841 | if (watchDog| TRUE | evaluated 126610 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| | FALSE | never evaluated |
) | 0-126610 |
| 842 | watchDog->beginTest();executed 126610 times by 502 tests: watchDog->beginTest();Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| 126610 |
| 843 | qInvokeTestMethodDataEntryinvokeTestOnData(slotindex); | - |
| 844 | if (watchDog| TRUE | evaluated 126528 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| | FALSE | never evaluated |
) | 0-126528 |
| 845 | watchDog->testFinished();executed 126528 times by 502 tests: watchDog->testFinished();Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| 126528 |
| 846 | | - |
| 847 | if (data| TRUE | evaluated 27 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 126501 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
) | 27-126501 |
| 848 | break;executed 27 times by 1 test: break;Executed by:- tst_selftests - unknown status
| 27 |
| 849 | }executed 126501 times by 502 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| 126501 |
| 850 | ++curDataIndex; | - |
| 851 | }executed 126503 times by 502 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
while (curDataIndex < dataCount| TRUE | evaluated 112761 times by 324 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QAction
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QAtomicInt
- tst_QAtomicInteger_char
- tst_QAtomicInteger_char16_t
- tst_QAtomicInteger_char32_t
- tst_QAtomicInteger_int
- tst_QAtomicInteger_long
- ...
| | FALSE | evaluated 13742 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
); | 13742-126503 |
| 852 | }executed 13769 times by 502 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| 13769 |
| 853 | | - |
| 854 | if (data| TRUE | evaluated 27 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 13979 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
&& !foundFunction| TRUE | never evaluated | | FALSE | evaluated 27 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-13979 |
| 855 | fprintf(stderr, "Unknown testdata for function %s: '%s'\n", slotName'%s()'\n", name.constData(), data); | - |
| 856 | fprintf(stderr, "Available testdata:\n"); | - |
| 857 | for (int i = 0; i < table.dataCount()| TRUE | never evaluated | | FALSE | never evaluated |
; ++i) | 0 |
| 858 | fprintf(stderr, "%s\n", table.testData(i)->dataTag()); never executed: fprintf(stderr, "%s\n", table.testData(i)->dataTag()); | 0 |
| 859 | return never executed: return false; false;never executed: return false; | 0 |
| 860 | } | - |
| 861 | | - |
| 862 | QTestResult::setCurrentGlobalTestData(0); | - |
| 863 | ++curGlobalDataIndex; | - |
| 864 | }executed 14006 times by 502 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
while (curGlobalDataIndex < globalDataCount| TRUE | evaluated 832 times by 12 testsEvaluated by:- tst_QDBusLocalCalls
- tst_QDnsLookup
- tst_QFtp
- tst_QHostInfo
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_Utf8
- tst_qdbusxml2cpp
- tst_selftests - unknown status
| | FALSE | evaluated 13174 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
); | 832-14006 |
| 865 | | - |
| 866 | QTestResult::finishedCurrentTestFunction(); | - |
| 867 | QTestResult::setSkipCurrentTest(false); | - |
| 868 | QTestResult::setBlacklistCurrentTest(false); | - |
| 869 | QTestResult::setCurrentTestData(0); | - |
| 870 | | - |
| 871 | delete[] slot;returnexecuted 13174 times by 502 tests: return true;Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
true;executed 13174 times by 502 tests: return true;Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| 13174 |
| 872 | } | - |
| 873 | | - |
| 874 | void *fetchData(QTestData *data, const char *tagName, int typeId) | - |
| 875 | { | - |
| 876 | do { if (!(typeId)| TRUE | never evaluated | | FALSE | evaluated 431987 times by 330 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QAction
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QAtomicInt
- tst_QAtomicInteger_char
- tst_QAtomicInteger_char16_t
- tst_QAtomicInteger_char32_t
- tst_QAtomicInteger_int
- tst_QAtomicInteger_long
- ...
|
) qt_assert("typeId",__FILE__,22891017);never executed: qt_assert("typeId",__FILE__,1017); } while (0); | 0-431987 |
| 877 | do { if (!(data)| TRUE | never evaluated | | FALSE | evaluated 431987 times by 330 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QAction
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QAtomicInt
- tst_QAtomicInteger_char
- tst_QAtomicInteger_char16_t
- tst_QAtomicInteger_char32_t
- tst_QAtomicInteger_int
- tst_QAtomicInteger_long
- ...
|
) qt_assert_x("QTest::fetchData()", "Test data requested, but no testdata available.",__FILE__,22901018);never executed: qt_assert_x("QTest::fetchData()", "Test data requested, but no testdata available.",__FILE__,1018); } while (0); | 0-431987 |
| 878 | do { if (!(data->parent())| TRUE | never evaluated | | FALSE | evaluated 431987 times by 330 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QAction
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QAtomicInt
- tst_QAtomicInteger_char
- tst_QAtomicInteger_char16_t
- tst_QAtomicInteger_char32_t
- tst_QAtomicInteger_int
- tst_QAtomicInteger_long
- ...
|
) qt_assert("data->parent()",__FILE__,22911019);never executed: qt_assert("data->parent()",__FILE__,1019); } while (0); | 0-431987 |
| 879 | | - |
| 880 | int idx = data->parent()->indexOf(tagName); | - |
| 881 | | - |
| 882 | if (__builtin_expect(!!(| TRUE | evaluated 25 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 431962 times by 330 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QAction
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QAtomicInt
- tst_QAtomicInteger_char
- tst_QAtomicInteger_char16_t
- tst_QAtomicInteger_char32_t
- tst_QAtomicInteger_int
- tst_QAtomicInteger_long
- ...
|
idx == -1 || idx >= data->dataCount())()), false)| TRUE | evaluated 25 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 431962 times by 330 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QAction
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QAtomicInt
- tst_QAtomicInteger_char
- tst_QAtomicInteger_char16_t
- tst_QAtomicInteger_char32_t
- tst_QAtomicInteger_int
- tst_QAtomicInteger_long
- ...
|
) { | 25-431962 |
| 883 | QMessageLogger(__FILE__, 22961024, __PRETTY_FUNCTION__).fatal("QFETCH: Requested testdata '%s' not available, check your _data function.", | - |
| 884 | tagName); | - |
| 885 | } never executed: end of block | 0 |
| 886 | | - |
| 887 | if (__builtin_expect(!!(| TRUE | never evaluated | | FALSE | evaluated 431962 times by 330 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QAction
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QAtomicInt
- tst_QAtomicInteger_char
- tst_QAtomicInteger_char16_t
- tst_QAtomicInteger_char32_t
- tst_QAtomicInteger_int
- tst_QAtomicInteger_long
- ...
|
typeId != data->parent()->elementTypeId(idx)), false)| TRUE | never evaluated | | FALSE | evaluated 431962 times by 330 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QAction
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QAtomicInt
- tst_QAtomicInteger_char
- tst_QAtomicInteger_char16_t
- tst_QAtomicInteger_char32_t
- tst_QAtomicInteger_int
- tst_QAtomicInteger_long
- ...
|
) { | 0-431962 |
| 888 | QMessageLogger(__FILE__, 23011029, __PRETTY_FUNCTION__).fatal("Requested type '%s' does not match available type '%s'.", | - |
| 889 | QMetaType::typeName(typeId), | - |
| 890 | QMetaType::typeName(data->parent()->elementTypeId(idx))); | - |
| 891 | } never executed: end of block | 0 |
| 892 | | - |
| 893 | returnexecuted 431962 times by 330 tests: return data->data(idx);Executed by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QAction
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QAtomicInt
- tst_QAtomicInteger_char
- tst_QAtomicInteger_char16_t
- tst_QAtomicInteger_char32_t
- tst_QAtomicInteger_int
- tst_QAtomicInteger_long
- ...
data->data(idx);executed 431962 times by 330 tests: return data->data(idx);Executed by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QAction
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QAtomicInt
- tst_QAtomicInteger_char
- tst_QAtomicInteger_char16_t
- tst_QAtomicInteger_char32_t
- tst_QAtomicInteger_int
- tst_QAtomicInteger_long
- ...
| 431962 |
| 894 | } | - |
| 895 | char *toHexRepresentation(const char *ba, int length) | - |
| 896 | { | - |
| 897 | if (length == 0) | - |
| 898 | return qstrdup(""); | - |
| 899 | const int maxLen = 50; | - |
| 900 | const int len = qMin(maxLen, length); | - |
| 901 | char *result = 0; | - |
| 902 | | - |
| 903 | if (length > maxLen) { | - |
| 904 | const int size = len * 3 + 4; | - |
| 905 | result = new char[size]; | - |
| 906 | | - |
| 907 | char *const forElipsis = result + size - 5; | - |
| 908 | forElipsis[0] = ' '; | - |
| 909 | forElipsis[1] = '.'; | - |
| 910 | forElipsis[2] = '.'; | - |
| 911 | forElipsis[3] = '.'; | - |
| 912 | result[size - 1] = '\0'; | - |
| 913 | } | - |
| 914 | else { | - |
| 915 | const int size = len * 3; | - |
| 916 | result = new char[size]; | - |
| 917 | result[size - 1] = '\0'; | - |
| 918 | } | - |
| 919 | | - |
| 920 | int i = 0; | - |
| 921 | int o = 0; | - |
| 922 | | - |
| 923 | while (true) { | - |
| 924 | const char at = ba[i]; | - |
| 925 | | - |
| 926 | result[o] = toHexUpper(at >> 4); | - |
| 927 | ++o; | - |
| 928 | result[o] = toHexUpper(at); | - |
| 929 | | - |
| 930 | ++i; | - |
| 931 | ++o; | - |
| 932 | if (i == len) | - |
| 933 | break; | - |
| 934 | else { | - |
| 935 | result[o] = ' '; | - |
| 936 | ++o; | - |
| 937 | } | - |
| 938 | } | - |
| 939 | | - |
| 940 | return result; | - |
| 941 | } | - |
| 942 | | - |
| 943 | | - |
| 944 | | - |
| 945 | | - |
| 946 | | - |
| 947 | | - |
| 948 | char *toPrettyCString(const char *p, int length) | - |
| 949 | { | - |
| 950 | bool trimmed = false; | - |
| 951 | QScopedArrayPointer<char> buffer(new char[256]); | - |
| 952 | const char *end = p + length; | - |
| 953 | char *dst = buffer.data(); | - |
| 954 | | - |
| 955 | bool lastWasHexEscape = false; | - |
| 956 | *dst++ = '"'; | - |
| 957 | for ( ; p != end; ++p) { | - |
| 958 | | - |
| 959 | | - |
| 960 | | - |
| 961 | | - |
| 962 | | - |
| 963 | if (dst - buffer.data() > 246) { | - |
| 964 | | - |
| 965 | trimmed = true; | - |
| 966 | break; | - |
| 967 | } | - |
| 968 | | - |
| 969 | | - |
| 970 | if (__builtin_expect(!!(lastWasHexEscape), false)) { | - |
| 971 | if (fromHex(*p) != -1) { | - |
| 972 | | - |
| 973 | *dst++ = '"'; | - |
| 974 | *dst++ = '"'; | - |
| 975 | } | - |
| 976 | lastWasHexEscape = false; | - |
| 977 | } | - |
| 978 | | - |
| 979 | if (*p < 0x7f && *p >= 0x20 && *p != '\\' && *p != '"') { | - |
| 980 | *dst++ = *p; | - |
| 981 | continue; | - |
| 982 | } | - |
| 983 | | - |
| 984 | | - |
| 985 | | - |
| 986 | *dst++ = '\\'; | - |
| 987 | switch (*p) { | - |
| 988 | case 0x5c: | - |
| 989 | case 0x22: | - |
| 990 | *dst++ = uchar(*p); | - |
| 991 | break; | - |
| 992 | case 0x8: | - |
| 993 | *dst++ = 'b'; | - |
| 994 | break; | - |
| 995 | case 0xc: | - |
| 996 | *dst++ = 'f'; | - |
| 997 | break; | - |
| 998 | case 0xa: | - |
| 999 | *dst++ = 'n'; | - |
| 1000 | break; | - |
| 1001 | case 0xd: | - |
| 1002 | *dst++ = 'r'; | - |
| 1003 | break; | - |
| 1004 | case 0x9: | - |
| 1005 | *dst++ = 't'; | - |
| 1006 | break; | - |
| 1007 | default: | - |
| 1008 | | - |
| 1009 | *dst++ = 'x'; | - |
| 1010 | *dst++ = toHexUpper(uchar(*p) >> 4); | - |
| 1011 | *dst++ = toHexUpper(uchar(*p)); | - |
| 1012 | lastWasHexEscape = true; | - |
| 1013 | break; | - |
| 1014 | } | - |
| 1015 | } | - |
| 1016 | | - |
| 1017 | *dst++ = '"'; | - |
| 1018 | if (trimmed) { | - |
| 1019 | *dst++ = '.'; | - |
| 1020 | *dst++ = '.'; | - |
| 1021 | *dst++ = '.'; | - |
| 1022 | } | - |
| 1023 | *dst++ = '\0'; | - |
| 1024 | return buffer.take(); | - |
| 1025 | } | - |
| 1026 | char *toPrettyUnicode(const ushort *p, int length) | - |
| 1027 | { | - |
| 1028 | | - |
| 1029 | bool trimmed = false; | - |
| 1030 | QScopedArrayPointer<char> buffer(new char[256]); | - |
| 1031 | const ushort *end = p + length; | - |
| 1032 | char *dst = buffer.data(); | - |
| 1033 | | - |
| 1034 | *dst++ = '"'; | - |
| 1035 | for ( ; p != end; ++p) { | - |
| 1036 | if (dst - buffer.data() > 245) { | - |
| 1037 | | - |
| 1038 | trimmed = true; | - |
| 1039 | break; | - |
| 1040 | } | - |
| 1041 | | - |
| 1042 | if (*p < 0x7f && *p >= 0x20 && *p != '\\' && *p != '"') { | - |
| 1043 | *dst++ = *p; | - |
| 1044 | continue; | - |
| 1045 | } | - |
| 1046 | | - |
| 1047 | | - |
| 1048 | | - |
| 1049 | *dst++ = '\\'; | - |
| 1050 | switch (*p) { | - |
| 1051 | case 0x22: | - |
| 1052 | case 0x5c: | - |
| 1053 | *dst++ = uchar(*p); | - |
| 1054 | break; | - |
| 1055 | case 0x8: | - |
| 1056 | *dst++ = 'b'; | - |
| 1057 | break; | - |
| 1058 | case 0xc: | - |
| 1059 | *dst++ = 'f'; | - |
| 1060 | break; | - |
| 1061 | case 0xa: | - |
| 1062 | *dst++ = 'n'; | - |
| 1063 | break; | - |
| 1064 | case 0xd: | - |
| 1065 | *dst++ = 'r'; | - |
| 1066 | break; | - |
| 1067 | case 0x9: | - |
| 1068 | *dst++ = 't'; | - |
| 1069 | break; | - |
| 1070 | default: | - |
| 1071 | *dst++ = 'u'; | - |
| 1072 | *dst++ = toHexUpper(*p >> 12); | - |
| 1073 | *dst++ = toHexUpper(*p >> 8); | - |
| 1074 | *dst++ = toHexUpper(*p >> 4); | - |
| 1075 | *dst++ = toHexUpper(*p); | - |
| 1076 | } | - |
| 1077 | } | - |
| 1078 | | - |
| 1079 | *dst++ = '"'; | - |
| 1080 | if (trimmed) { | - |
| 1081 | *dst++ = '.'; | - |
| 1082 | *dst++ = '.'; | - |
| 1083 | *dst++ = '.'; | - |
| 1084 | } | - |
| 1085 | *dst++ = '\0'; | - |
| 1086 | return buffer.take(); | - |
| 1087 | } | - |
| 1088 | | - |
| 1089 | static bool debuggerPresent() | - |
| 1090 | { | - |
| 1091 | | - |
| 1092 | int fd = open("/proc/self/status", 00); | - |
| 1093 | if (fd == -1) | - |
| 1094 | return false; | - |
| 1095 | char buffer[2048]; | - |
| 1096 | ssize_t size = read(fd, buffer, sizeof(buffer) - 1); | - |
| 1097 | if (size == -1) { | - |
| 1098 | close(fd); | - |
| 1099 | return false; | - |
| 1100 | } | - |
| 1101 | buffer[size] = 0; | - |
| 1102 | const char tracerPidToken[] = "\nTracerPid:"; | - |
| 1103 | char *tracerPid = strstr(buffer, tracerPidToken); | - |
| 1104 | if (!tracerPid) { | - |
| 1105 | close(fd); | - |
| 1106 | return false; | - |
| 1107 | } | - |
| 1108 | tracerPid += sizeof(tracerPidToken); | - |
| 1109 | long int pid = strtol(tracerPid, &tracerPid, 10); | - |
| 1110 | close(fd); | - |
| 1111 | return pid != 0; | - |
| 1112 | | - |
| 1113 | | - |
| 1114 | | - |
| 1115 | | - |
| 1116 | | - |
| 1117 | | - |
| 1118 | } | - |
| 1119 | | - |
| staticvoid qInvokeTestMethodsTestMethods::invokeTests(QObject *testObject) const | |
| 1121 | { | - |
| 1122 | const QMetaObject *metaObject = testObject->metaObject(); | - |
| 1123 | do { if (!(metaObject)| TRUE | never evaluated | | FALSE | evaluated 1320 times by 506 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
|
) qt_assert("metaObject",__FILE__,25631291);never executed: qt_assert("metaObject",__FILE__,1291); } while (0); | 0-1320 |
| 1124 | QTestLog::startLogging(); | - |
| 1125 | QTestResult::setCurrentTestFunction("initTestCase"); | - |
| 1126 | QTestTable::globalTestTable(); | - |
| 1127 | invokeMethodif (m_initTestCaseDataMethod.isValid()| TRUE | evaluated 85 times by 11 testsEvaluated by:- tst_QFtp
- tst_QSqlDriver
- tst_QSqlRelationalTableModel
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_qdbusxml2cpp
- tst_selftests - unknown status
| | FALSE | evaluated 1235 times by 496 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
|
) | 85-1235 |
| 1128 | m_initTestCaseDataMethod.invokeexecuted 85 times by 11 tests: m_initTestCaseDataMethod.invoke(testObject, Qt::DirectConnection);Executed by:- tst_QFtp
- tst_QSqlDriver
- tst_QSqlRelationalTableModel
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_qdbusxml2cpp
- tst_selftests - unknown status
executed 85 times by 11 tests: m_initTestCaseDataMethod.invoke(testObject, Qt::DirectConnection);Executed by:- tst_QFtp
- tst_QSqlDriver
- tst_QSqlRelationalTableModel
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_qdbusxml2cpp
- tst_selftests - unknown status
(testObject, "initTestCase_data()"Qt::DirectConnection);executed 85 times by 11 tests: m_initTestCaseDataMethod.invoke(testObject, Qt::DirectConnection);Executed by:- tst_QFtp
- tst_QSqlDriver
- tst_QSqlRelationalTableModel
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_qdbusxml2cpp
- tst_selftests - unknown status
| 85 |
| 1129 | | - |
| 1130 | QScopedPointer<WatchDog> watchDog; | - |
| 1131 | if (!debuggerPresent()| TRUE | evaluated 1320 times by 506 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| | FALSE | never evaluated |
| 0-1320 |
| 1132 | | - |
| 1133 | && QBenchmarkGlobalData::current->mode() != QBenchmarkGlobalData::CallgrindChildProcess| TRUE | evaluated 1320 times by 506 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| | FALSE | never evaluated |
| 0-1320 |
| 1134 | | - |
| 1135 | ) { | - |
| 1136 | watchDog.reset(new WatchDog); | - |
| 1137 | }executed 1320 times by 506 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 1320 |
| 1138 | | - |
| 1139 | if (!QTestResult::skipCurrentTest()| TRUE | evaluated 1295 times by 506 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| | FALSE | evaluated 25 times by 1 testEvaluated by:- tst_selftests - unknown status
|
&& !QTest::currentTestFailed()| TRUE | evaluated 1270 times by 506 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| | FALSE | evaluated 25 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 25-1295 |
| 1140 | invokeMethodif (m_initTestCaseMethod.isValid()| TRUE | evaluated 316 times by 190 testsEvaluated by:- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QAction
- tst_QAnimationGroup
- tst_QApplication
- tst_QAtomicInteger_char
- tst_QAtomicInteger_char16_t
- tst_QAtomicInteger_char32_t
- tst_QAtomicInteger_int
- tst_QAtomicInteger_long
- tst_QAtomicInteger_qlonglong
- tst_QAtomicInteger_qptrdiff
- tst_QAtomicInteger_quintptr
- tst_QAtomicInteger_qulonglong
- tst_QAtomicInteger_schar
- tst_QAtomicInteger_short
- ...
| | FALSE | evaluated 954 times by 317 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_ModelTest
- tst_QAbstractAnimation
- tst_QAbstractItemModel
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QActionGroup
- tst_QAlgorithms
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QAtomicInt
- tst_QAtomicPointer
- tst_QAuthenticator
- tst_QBackingStore
- tst_QBitArray
- tst_QBoxLayout
- tst_QBrush
- tst_QBuffer
- tst_QButtonGroup
- ...
|
) | 316-954 |
| 1141 | m_initTestCaseMethod.invokeexecuted 316 times by 190 tests: m_initTestCaseMethod.invoke(testObject, Qt::DirectConnection);Executed by:- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QAction
- tst_QAnimationGroup
- tst_QApplication
- tst_QAtomicInteger_char
- tst_QAtomicInteger_char16_t
- tst_QAtomicInteger_char32_t
- tst_QAtomicInteger_int
- tst_QAtomicInteger_long
- tst_QAtomicInteger_qlonglong
- tst_QAtomicInteger_qptrdiff
- tst_QAtomicInteger_quintptr
- tst_QAtomicInteger_qulonglong
- tst_QAtomicInteger_schar
- tst_QAtomicInteger_short
- ...
executed 316 times by 190 tests: m_initTestCaseMethod.invoke(testObject, Qt::DirectConnection);Executed by:- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QAction
- tst_QAnimationGroup
- tst_QApplication
- tst_QAtomicInteger_char
- tst_QAtomicInteger_char16_t
- tst_QAtomicInteger_char32_t
- tst_QAtomicInteger_int
- tst_QAtomicInteger_long
- tst_QAtomicInteger_qlonglong
- tst_QAtomicInteger_qptrdiff
- tst_QAtomicInteger_quintptr
- tst_QAtomicInteger_qulonglong
- tst_QAtomicInteger_schar
- tst_QAtomicInteger_short
- ...
(testObject, "initTestCase()"Qt::DirectConnection);executed 316 times by 190 tests: m_initTestCaseMethod.invoke(testObject, Qt::DirectConnection);Executed by:- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QAction
- tst_QAnimationGroup
- tst_QApplication
- tst_QAtomicInteger_char
- tst_QAtomicInteger_char16_t
- tst_QAtomicInteger_char32_t
- tst_QAtomicInteger_int
- tst_QAtomicInteger_long
- tst_QAtomicInteger_qlonglong
- tst_QAtomicInteger_qptrdiff
- tst_QAtomicInteger_quintptr
- tst_QAtomicInteger_qulonglong
- tst_QAtomicInteger_schar
- tst_QAtomicInteger_short
- ...
| 316 |
| 1142 | | - |
| 1143 | | - |
| 1144 | const bool previousFailed = QTestResult::currentTestFailed(); | - |
| 1145 | QTestResult::finishedCurrentTestData(); | - |
| 1146 | QTestResult::finishedCurrentTestDataCleanup(); | - |
| 1147 | QTestResult::finishedCurrentTestFunction(); | - |
| 1148 | | - |
| 1149 | if (!QTestResult::skipCurrentTest()| TRUE | evaluated 1244 times by 505 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| | FALSE | evaluated 26 times by 2 testsEvaluated by:- tst_Lancelot
- tst_selftests - unknown status
|
&& !previousFailed) {| TRUE | evaluated 1217 times by 503 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| | FALSE | evaluated 27 times by 3 testsEvaluated by:- tst_QLocale
- tst_QThreadStorage
- tst_selftests - unknown status
|
| 26-1244 |
| | |
| if (QTest::testFuncs| TRUE | evaluated 1217 times by 503 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| | FALSE | evaluated 27 times by 3 testsEvaluated by:- tst_QLocale
- tst_QThreadStorage
- tst_selftests - unknown status
|
) { | |
| 1150 | for (int i = 0;, count = int(m_methods.size()); i != QTest::testFuncCount< count| TRUE | evaluated 13256 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| | FALSE | evaluated 1135 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
; ++i++)) { | 1135-13256 |
| 1151 | const char *data = nullptr; | - |
| 1152 | if (!qInvokeTestMethod(metaObject->method(QTest::testFuncs[i ].function()).methodSignature().constData(),< QTest::testFuncs[i].data(), watchDogtestTags.data())) {| TRUE | evaluated 64 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 13192 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
| 27-13192 |
| break;| TRUE | evaluated 64 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 13192 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
| |
| }| TRUE | evaluated 64 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 13192 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
| |
| }| TRUE | evaluated 64 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 13192 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
| |
| testFuncCleaner| TRUE | evaluated 64 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 13192 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
| TRUE | evaluated 64 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 13192 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
size()| TRUE | evaluated 64 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 13192 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
&& !QTest::testTags| TRUE | evaluated 27 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 37 times by 1 testEvaluated by:- tst_selftests - unknown status
|
.cleanup();| TRUE | evaluated 27 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 37 times by 1 testEvaluated by:- tst_selftests - unknown status
|
| |
| } else {| TRUE | evaluated 27 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 37 times by 1 testEvaluated by:- tst_selftests - unknown status
|
| |
| int methodCount = metaObject->methodCount();| TRUE | evaluated 27 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 37 times by 1 testEvaluated by:- tst_selftests - unknown status
|
| |
| QMetaMethod *testMethods = new QMetaMethod[methodCount];| TRUE | evaluated 27 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 37 times by 1 testEvaluated by:- tst_selftests - unknown status
|
| |
| for| TRUE | evaluated 27 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 37 times by 1 testEvaluated by:- tst_selftests - unknown status
|
| TRUE | evaluated 27 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 37 times by 1 testEvaluated by:- tst_selftests - unknown status
|
at(int i = 0; i != methodCount; i++)| TRUE | evaluated 27 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 37 times by 1 testEvaluated by:- tst_selftests - unknown status
|
| |
| testMethods[| TRUE | evaluated 27 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 37 times by 1 testEvaluated by:- tst_selftests - unknown status
|
| TRUE | evaluated 27 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 37 times by 1 testEvaluated by:- tst_selftests - unknown status
|
i]).isEmpty()| TRUE | evaluated 27 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 37 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) | |
| 1153 | dataexecuted 27 times by 1 test: data = qstrdup(QTest::testTags.at(i).toLatin1().constData());Executed by:- tst_selftests - unknown status
executed 27 times by 1 test: data = qstrdup(QTest::testTags.at(i).toLatin1().constData());Executed by:- tst_selftests - unknown status
= metaObject->methodqstrdup(i);executed 27 times by 1 test: data = qstrdup(QTest::testTags.at(i).toLatin1().constData());Executed by:- tst_selftests - unknown status
| 27 |
| forexecuted 27 times by 1 test: data = qstrdup(QTest::testTags.at(i).toLatin1().constData());Executed by:- tst_selftests - unknown status
executed 27 times by 1 test: data = qstrdup(QTest::testTags.at(i).toLatin1().constData());Executed by:- tst_selftests - unknown status
QTest::testTags.at(inti).toLatin1().constData());executed 27 times by 1 test: data = qstrdup(QTest::testTags.at(i).toLatin1().constData());Executed by:- tst_selftests - unknown status
| |
| 1154 | const bool ok = 0; i != methodCount; i++) { | - |
| if (!isValidSlot(testMethods[i])) | |
| continue; | |
| if (!qInvokeTestMethodinvokeTest(testMethods[i].methodSignature().constData(), 0, data, watchDog.data())) | |
| break; | |
| }()); | |
| 1155 | delete [] testMethodsdata; | - |
| 1156 | testMethods = 0if (!ok| TRUE | never evaluated | | FALSE | evaluated 13174 times by 502 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
|
) | 0-13174 |
| 1157 | break never executed: break; never executed: break; never executed: break; ;never executed: break; | 0 |
| 1158 | }executed 13174 times by 502 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| 13174 |
| 1159 | }executed 1135 times by 502 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- ...
| 1135 |
| 1160 | | - |
| 1161 | QTestResult::setSkipCurrentTest(false); | - |
| 1162 | QTestResult::setBlacklistCurrentTest(false); | - |
| 1163 | QTestResult::setCurrentTestFunction("cleanupTestCase"); | - |
| 1164 | invokeMethodif (m_cleanupTestCaseMethod.isValid()| TRUE | evaluated 210 times by 85 testsEvaluated by:- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QAction
- tst_QCache
- tst_QCheckBox
- tst_QCommandLinkButton
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QDoubleSpinBox
- tst_QFile
- tst_QFileInfo
- tst_QFocusEvent
- ...
| | FALSE | evaluated 978 times by 421 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QAtomicInt
- tst_QAtomicInteger_char
- tst_QAtomicInteger_char16_t
- ...
|
) | 210-978 |
| 1165 | m_cleanupTestCaseMethod.invokeexecuted 210 times by 85 tests: m_cleanupTestCaseMethod.invoke(testObject, Qt::DirectConnection);Executed by:- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QAction
- tst_QCache
- tst_QCheckBox
- tst_QCommandLinkButton
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QDoubleSpinBox
- tst_QFile
- tst_QFileInfo
- tst_QFocusEvent
- ...
executed 210 times by 85 tests: m_cleanupTestCaseMethod.invoke(testObject, Qt::DirectConnection);Executed by:- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QAction
- tst_QCache
- tst_QCheckBox
- tst_QCommandLinkButton
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QDoubleSpinBox
- tst_QFile
- tst_QFileInfo
- tst_QFocusEvent
- ...
(testObject, "cleanupTestCase()"Qt::DirectConnection);executed 210 times by 85 tests: m_cleanupTestCaseMethod.invoke(testObject, Qt::DirectConnection);Executed by:- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QAction
- tst_QCache
- tst_QCheckBox
- tst_QCommandLinkButton
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QDoubleSpinBox
- tst_QFile
- tst_QFileInfo
- tst_QFocusEvent
- ...
| 210 |
| 1166 | QTestResult::finishedCurrentTestData(); | - |
| 1167 | QTestResult::finishedCurrentTestDataCleanup(); | - |
| 1168 | }executed 1188 times by 505 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 1188 |
| 1169 | QTestResult::finishedCurrentTestFunction(); | - |
| 1170 | QTestResult::setCurrentTestFunction(0); | - |
| 1171 | QTestTable::clearGlobalTestTable(); | - |
| 1172 | | - |
| 1173 | QTestLog::stopLogging(); | - |
| 1174 | }executed 1238 times by 508 tests: end of blockExecuted by:- tst_collections - unknown status
- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- tst_largefile - unknown status
- tst_modeltest - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_q_func_info - unknown status
- tst_qabstractanimation - unknown status
- tst_qabstractbutton - unknown status
- tst_qabstractfileengine - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qabstractprintdialog - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qabstractscrollarea - unknown status
- tst_qabstractslider - unknown status
- tst_qabstractsocket - unknown status
- tst_qabstractspinbox - unknown status
- tst_qabstracttextdocumentlayout - unknown status
- tst_qaccessibility - unknown status
- tst_qaction - unknown status
- ...
| 1238 |
| 1175 | | - |
| 1176 | | - |
| 1177 | class FatalSignalHandler | - |
| 1178 | { | - |
| 1179 | public: | - |
| 1180 | FatalSignalHandler(); | - |
| 1181 | ~FatalSignalHandler(); | - |
| 1182 | | - |
| 1183 | private: | - |
| 1184 | static void signal(int); | - |
| 1185 | sigset_t handledSignals; | - |
| 1186 | }; | - |
| 1187 | | - |
| 1188 | void FatalSignalHandler::signal(int signum) | - |
| 1189 | { | - |
| 1190 | const int msecsFunctionTime = qRound(QTestLog::msecsFunctionTime()); | - |
| 1191 | const int msecsTotalTime = qRound(QTestLog::msecsTotalTime()); | - |
| 1192 | if (signum != 2) | - |
| 1193 | stackTrace(); | - |
| 1194 | QMessageLogger(__FILE__, 26451362, __PRETTY_FUNCTION__).fatal("Received signal %d\n" | - |
| 1195 | " Function time: %dms Total time: %dms", | - |
| 1196 | signum, msecsFunctionTime, msecsTotalTime); | - |
| 1197 | } | - |
| 1198 | | - |
| 1199 | FatalSignalHandler::FatalSignalHandler() | - |
| 1200 | { | - |
| 1201 | sigemptyset(&handledSignals); | - |
| 1202 | | - |
| 1203 | const int fatalSignals[] = { | - |
| 1204 | 1, 2, 3, 4, 7, 8, 11, 13, 15, 0 }; | - |
| 1205 | | - |
| 1206 | struct sigaction act; | - |
| 1207 | memset(&act, 0, sizeof(act)); | - |
| 1208 | act.__sigaction_handler.sa_handler = FatalSignalHandler::signal; | - |
| 1209 | | - |
| 1210 | | - |
| 1211 | | - |
| 1212 | act.sa_flags = 0x80000000; | - |
| 1213 | __attribute__((section(".lbss.altstack"), aligned(4096))) | - |
| 1214 | | - |
| 1215 | static char alternate_stack[16 * 1024]; | - |
| 1216 | stack_t stack; | - |
| 1217 | stack.ss_flags = 0; | - |
| 1218 | stack.ss_size = sizeof alternate_stack; | - |
| 1219 | stack.ss_sp = alternate_stack; | - |
| 1220 | sigaltstack(&stack, 0); | - |
| 1221 | act.sa_flags |= 0x08000000; | - |
| 1222 | | - |
| 1223 | | - |
| 1224 | | - |
| 1225 | | - |
| 1226 | sigemptyset(&act.sa_mask); | - |
| 1227 | for (int i = 0; fatalSignals[i]; ++i) | - |
| 1228 | sigaddset(&act.sa_mask, fatalSignals[i]); | - |
| 1229 | | - |
| 1230 | struct sigaction oldact; | - |
| 1231 | | - |
| 1232 | for (int i = 0; fatalSignals[i]; ++i) { | - |
| 1233 | sigaction(fatalSignals[i], &act, &oldact); | - |
| 1234 | if ( | - |
| 1235 | | - |
| 1236 | oldact.sa_flags & 4 || | - |
| 1237 | | - |
| 1238 | oldact.__sigaction_handler.sa_handler != ((__sighandler_t) 0)) { | - |
| 1239 | sigaction(fatalSignals[i], &oldact, 0); | - |
| 1240 | } else | - |
| 1241 | { | - |
| 1242 | sigaddset(&handledSignals, fatalSignals[i]); | - |
| 1243 | } | - |
| 1244 | } | - |
| 1245 | } | - |
| 1246 | | - |
| 1247 | | - |
| 1248 | FatalSignalHandler::~FatalSignalHandler() | - |
| 1249 | { | - |
| 1250 | | - |
| 1251 | struct sigaction act; | - |
| 1252 | memset(&act, 0, sizeof(act)); | - |
| 1253 | act.__sigaction_handler.sa_handler = ((__sighandler_t) 0); | - |
| 1254 | | - |
| 1255 | struct sigaction oldact; | - |
| 1256 | | - |
| 1257 | for (int i = 1; i < 32; ++i) { | - |
| 1258 | if (!sigismember(&handledSignals, i)) | - |
| 1259 | continue; | - |
| 1260 | sigaction(i, &act, &oldact); | - |
| 1261 | | - |
| 1262 | | - |
| 1263 | if (oldact.__sigaction_handler.sa_handler != FatalSignalHandler::signal) | - |
| 1264 | sigaction(i, &oldact, 0); | - |
| 1265 | } | - |
| 1266 | } | - |
| 1267 | | - |
| 1268 | | - |
| 1269 | | - |
| 1270 | | - |
| 1271 | } | - |
| 1272 | static void initEnvironment() | - |
| 1273 | { | - |
| 1274 | qputenv("QT_LOGGING_TO_CONSOLE", "1"); | - |
| 1275 | qputenv("QT_QTESTLIB_RUNNING", "1"); | - |
| 1276 | } | - |
| 1277 | int QTest::qExec(QObject *testObject, int argc, char **argv) | - |
| 1278 | { | - |
| 1279 | initEnvironment(); | - |
| 1280 | QBenchmarkGlobalData benchmarkData; | - |
| 1281 | QBenchmarkGlobalData::current = &benchmarkData; | - |
| 1282 | | - |
| 1283 | | - |
| 1284 | int callgrindChildExitCode = 0; | - |
| 1285 | try { | - |
| 1286 | QTestPrivate::parseBlackList(); | - |
| 1287 | QTestPrivate::parseGpuBlackList(); | - |
| 1288 | | - |
| 1289 | QTestResult::reset(); | - |
| 1290 | | - |
| 1291 | do { if (!(testObject)| TRUE | never evaluated | | FALSE | evaluated 815 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) qt_assert("testObject",__FILE__,29601677);never executed: qt_assert("testObject",__FILE__,1677); } while (0); | 0-815 |
| 1292 | do { if (!(!currentTestObject)| TRUE | never evaluated | | FALSE | evaluated 815 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) qt_assert("!currentTestObject",__FILE__,29611678);never executed: qt_assert("!currentTestObject",__FILE__,1678); } while (0); | 0-815 |
| 1293 | currentTestObject = testObject; | - |
| 1294 | | - |
| 1295 | const QMetaObject *metaObject = testObject->metaObject(); | - |
| 1296 | do { if (!(metaObject)| TRUE | never evaluated | | FALSE | evaluated 815 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) qt_assert("metaObject",__FILE__,29651682);never executed: qt_assert("metaObject",__FILE__,1682); } while (0); | 0-815 |
| 1297 | | - |
| 1298 | QTestResult::setCurrentTestObject(metaObject->className()); | - |
| 1299 | if (argc > 0| TRUE | evaluated 815 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | never evaluated |
) | 0-815 |
| 1300 | QTestResult::setCurrentAppName(argv[0]);executed 815 times by 1 test: QTestResult::setCurrentAppName(argv[0]);Executed by:- tst_selftests - unknown status
| 815 |
| 1301 | | - |
| 1302 | qtest_qParseArgs(argc, argv, false); | - |
| 1303 | if (QBenchmarkGlobalData::current->mode() == QBenchmarkGlobalData::CallgrindParentProcess| TRUE | never evaluated | | FALSE | evaluated 1320 times by 506 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
|
) { | 0-1320 |
| 1304 | if (!(__builtin_expect(!!(!| TRUE | never evaluated | | FALSE | never evaluated |
QCoreApplication::instance())()), false)| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 1305 | QMessageLogger(__FILE__, 29881705, __PRETTY_FUNCTION__).fatal("QtTest: -callgrind option is not available with QTEST_APPLESS_MAIN"); never executed: QMessageLogger(__FILE__, 1705, __PRETTY_FUNCTION__).fatal("QtTest: -callgrind option is not available with QTEST_APPLESS_MAIN"); | 0 |
| 1306 | | - |
| 1307 | const QStringList origAppArgs(QCoreApplication::arguments()); | - |
| 1308 | if (!QBenchmarkValgrindUtils::rerunThroughCallgrind(origAppArgs, callgrindChildExitCode)| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 1309 | return never executed: return -1; -1;never executed: return -1; | 0 |
| 1310 | | - |
| 1311 | QBenchmarkValgrindUtils::cleanup(); | - |
| 1312 | | - |
| 1313 | } never executed: end of block else | 0 |
| 1314 | | - |
| 1315 | { | - |
| 1316 | | - |
| 1317 | QScopedPointer<FatalSignalHandler> handler; | - |
| 1318 | if (!noCrashHandler| TRUE | evaluated 1320 times by 506 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| | FALSE | never evaluated |
) | 0-1320 |
| 1319 | handler.reset(new FatalSignalHandler);executed 1320 times by 506 tests: handler.reset(new FatalSignalHandler);Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 1320 |
| 1320 | | - |
| 1321 | qInvokeTestMethodsTestMethods::MetaMethods commandLineMethods; | - |
| 1322 | for (const QString &tf : qAsConst(QTest::testFunctions)) { | - |
| 1323 | const QByteArray tfB = tf.toLatin1(); | - |
| 1324 | const QByteArray signature = tfB + ([]() -> QByteArray { enum { Size = sizeof("()") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "()" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); returnexecuted 64 times by 1 test: return ba;Executed by:- tst_selftests - unknown status
ba;executed 64 times by 1 test: return ba;Executed by:- tst_selftests - unknown status
}()); | 64 |
| 1325 | QMetaMethod m = TestMethods::findMethod(testObject, signature.constData()); | - |
| 1326 | if (!m.isValid()| TRUE | never evaluated | | FALSE | evaluated 64 times by 1 testEvaluated by:- tst_selftests - unknown status
|
|| !isValidSlot(m)| TRUE | never evaluated | | FALSE | evaluated 64 times by 1 testEvaluated by:- tst_selftests - unknown status
|
) { | 0-64 |
| 1327 | fprintf(stderr, "Unknown test function: '%s'. Possible matches:\n", tfB.constData()); | - |
| 1328 | qPrintTestSlots(stderr, tfB.constData()); | - |
| 1329 | fprintf(stderr, "\n%s -functions\nlists all available test functions.\n", argv[0]); | - |
| 1330 | exit(1); never executed: exit(1); | 0 |
| 1331 | } | - |
| 1332 | commandLineMethods.push_back(m); | - |
| 1333 | }executed 64 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
| 64 |
| 1334 | TestMethods test(testObject, commandLineMethods); | - |
| 1335 | test.invokeTests(testObject); | - |
| 1336 | }executed 1238 times by 508 tests: end of blockExecuted by:- tst_collections - unknown status
- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- tst_largefile - unknown status
- tst_modeltest - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_q_func_info - unknown status
- tst_qabstractanimation - unknown status
- tst_qabstractbutton - unknown status
- tst_qabstractfileengine - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qabstractprintdialog - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qabstractscrollarea - unknown status
- tst_qabstractslider - unknown status
- tst_qabstractsocket - unknown status
- tst_qabstractspinbox - unknown status
- tst_qabstracttextdocumentlayout - unknown status
- tst_qaccessibility - unknown status
- tst_qaction - unknown status
- ...
| 1238 |
| 1337 | | - |
| 1338 | | - |
| 1339 | } catch (...) { | - |
| 1340 | QTestResult::addFailure("Caught unhandled exception", __FILE__, 30091740); | - |
| 1341 | if (QTestResult::currentTestFunction()| TRUE | evaluated 25 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | never evaluated |
) { | 0-25 |
| 1342 | QTestResult::finishedCurrentTestFunction(); | - |
| 1343 | QTestResult::setCurrentTestFunction(0); | - |
| 1344 | }executed 25 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
| 25 |
| 1345 | | - |
| 1346 | QTestLog::stopLogging(); | - |
| 1347 | | - |
| 1348 | | - |
| 1349 | | - |
| 1350 | | - |
| 1351 | | - |
| 1352 | currentTestObject = 0; | - |
| 1353 | | - |
| 1354 | | - |
| 1355 | throw;executed 25 times by 1 test: throw;Executed by:- tst_selftests - unknown status
| 25 |
| 1356 | return dead code: return 1; 1;dead code: return 1; | - |
| 1357 | } | - |
| 1358 | | - |
| 1359 | | - |
| 1360 | currentTestObject = 0; | - |
| 1361 | | - |
| 1362 | QSignalDumper::endDump(); | - |
| 1363 | if (QBenchmarkGlobalData::current->mode() == QBenchmarkGlobalData::CallgrindParentProcess| TRUE | never evaluated | | FALSE | evaluated 1238 times by 508 testsEvaluated by:- tst_collections - unknown status
- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- tst_largefile - unknown status
- tst_modeltest - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_q_func_info - unknown status
- tst_qabstractanimation - unknown status
- tst_qabstractbutton - unknown status
- tst_qabstractfileengine - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qabstractprintdialog - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qabstractscrollarea - unknown status
- tst_qabstractslider - unknown status
- tst_qabstractsocket - unknown status
- tst_qabstractspinbox - unknown status
- tst_qabstracttextdocumentlayout - unknown status
- tst_qaccessibility - unknown status
- tst_qaction - unknown status
- ...
|
) | 0-1238 |
| 1364 | return never executed: return callgrindChildExitCode; callgrindChildExitCode;never executed: return callgrindChildExitCode; | 0 |
| 1365 | | - |
| 1366 | | - |
| 1367 | | - |
| 1368 | returnexecuted 1238 times by 508 tests: return qMin(QTestLog::failCount(), 127);Executed by:- tst_collections - unknown status
- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- tst_largefile - unknown status
- tst_modeltest - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_q_func_info - unknown status
- tst_qabstractanimation - unknown status
- tst_qabstractbutton - unknown status
- tst_qabstractfileengine - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qabstractprintdialog - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qabstractscrollarea - unknown status
- tst_qabstractslider - unknown status
- tst_qabstractsocket - unknown status
- tst_qabstractspinbox - unknown status
- tst_qabstracttextdocumentlayout - unknown status
- tst_qaccessibility - unknown status
- tst_qaction - unknown status
- ...
qMin(QTestLog::failCount(), 127);executed 1238 times by 508 tests: return qMin(QTestLog::failCount(), 127);Executed by:- tst_collections - unknown status
- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- tst_largefile - unknown status
- tst_modeltest - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_q_func_info - unknown status
- tst_qabstractanimation - unknown status
- tst_qabstractbutton - unknown status
- tst_qabstractfileengine - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qabstractprintdialog - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qabstractscrollarea - unknown status
- tst_qabstractslider - unknown status
- tst_qabstractsocket - unknown status
- tst_qabstractspinbox - unknown status
- tst_qabstracttextdocumentlayout - unknown status
- tst_qaccessibility - unknown status
- tst_qaction - unknown status
- ...
| 1238 |
| 1369 | } | - |
| 1370 | int QTest::qExec(QObject *testObject, const QStringList &arguments) | - |
| 1371 | { | - |
| 1372 | const int argc = arguments.count(); | - |
| 1373 | QVarLengthArray<char *> argv(argc); | - |
| 1374 | | - |
| 1375 | QVector<QByteArray> args; | - |
| 1376 | args.reserve(argc); | - |
| 1377 | | - |
| 1378 | for (int i = 0; i < argc; ++i) | - |
| 1379 | { | - |
| 1380 | args.append(arguments.at(i).toLocal8Bit().constData()); | - |
| 1381 | argv[i] = args.last().data(); | - |
| 1382 | } | - |
| 1383 | | - |
| 1384 | return qExec(testObject, argc, argv.data()); | - |
| 1385 | } | - |
| 1386 | | - |
| 1387 | | - |
| 1388 | | - |
| 1389 | void QTest::qFail(const char *statementStr, const char *file, int line) | - |
| 1390 | { | - |
| 1391 | QTestResult::addFailure(statementStr, file, line); | - |
| 1392 | } | - |
| 1393 | | - |
| 1394 | | - |
| 1395 | | - |
| 1396 | bool QTest::qVerify(bool statement, const char *statementStr, const char *description, | - |
| 1397 | const char *file, int line) | - |
| 1398 | { | - |
| 1399 | return QTestResult::verify(statement, statementStr, description, file, line); | - |
| 1400 | } | - |
| 1401 | | - |
| 1402 | | - |
| 1403 | | - |
| 1404 | | - |
| 1405 | void QTest::qSkip(const char *message, const char *file, int line) | - |
| 1406 | { | - |
| 1407 | QTestResult::addSkip(message, file, line); | - |
| 1408 | QTestResult::setSkipCurrentTest(true); | - |
| 1409 | } | - |
| 1410 | | - |
| 1411 | | - |
| 1412 | | - |
| 1413 | | - |
| 1414 | bool QTest::qExpectFail(const char *dataIndex, const char *comment, | - |
| 1415 | QTest::TestFailMode mode, const char *file, int line) | - |
| 1416 | { | - |
| 1417 | return QTestResult::expectFail(dataIndex, qstrdup(comment), mode, file, line); | - |
| 1418 | } | - |
| 1419 | | - |
| 1420 | | - |
| 1421 | | - |
| 1422 | void QTest::qWarn(const char *message, const char *file, int line) | - |
| 1423 | { | - |
| 1424 | QTestLog::warn(message, file, line); | - |
| 1425 | } | - |
| 1426 | void QTest::ignoreMessage(QtMsgType type, const char *message) | - |
| 1427 | { | - |
| 1428 | QTestLog::ignoreMessage(type, message); | - |
| 1429 | } | - |
| 1430 | void QTest::ignoreMessage(QtMsgType type, const QRegularExpression &messagePattern) | - |
| 1431 | { | - |
| 1432 | QTestLog::ignoreMessage(type, messagePattern); | - |
| 1433 | } | - |
| 1434 | QSharedPointer<QTemporaryDir> QTest::qExtractTestData(const QString &dirName) | - |
| 1435 | { | - |
| 1436 | QSharedPointer<QTemporaryDir> result; | - |
| 1437 | | - |
| 1438 | QSharedPointer<QTemporaryDir> tempDir = QSharedPointer<QTemporaryDir>::create(); | - |
| 1439 | | - |
| 1440 | tempDir->setAutoRemove(true); | - |
| 1441 | | - |
| 1442 | if (!tempDir->isValid()) | - |
| 1443 | return result; | - |
| 1444 | | - |
| 1445 | const QString dataPath = tempDir->path(); | - |
| 1446 | const QString resourcePath = QLatin1Char(':') + dirName; | - |
| 1447 | const QFileInfo fileInfo(resourcePath); | - |
| 1448 | | - |
| 1449 | if (!fileInfo.isDir()) { | - |
| 1450 | QMessageLogger(__FILE__, 31921923, __PRETTY_FUNCTION__).warning("Resource path '%s' is not a directory.", QString(resourcePath).toLocal8Bit().constData()); | - |
| 1451 | return result; | - |
| 1452 | } | - |
| 1453 | | - |
| 1454 | QDirIterator it(resourcePath, QDirIterator::Subdirectories); | - |
| 1455 | if (!it.hasNext()) { | - |
| 1456 | QMessageLogger(__FILE__, 31981929, __PRETTY_FUNCTION__).warning("Resource directory '%s' is empty.", QString(resourcePath).toLocal8Bit().constData()); | - |
| 1457 | return result; | - |
| 1458 | } | - |
| 1459 | | - |
| 1460 | while (it.hasNext()) { | - |
| 1461 | it.next(); | - |
| 1462 | | - |
| 1463 | QFileInfo fileInfo = it.fileInfo(); | - |
| 1464 | | - |
| 1465 | if (!fileInfo.isDir()) { | - |
| 1466 | const QString destination = dataPath + QLatin1Char('/') + fileInfo.filePath().midRef(resourcePath.length()); | - |
| 1467 | QFileInfo destinationFileInfo(destination); | - |
| 1468 | QDir().mkpath(destinationFileInfo.path()); | - |
| 1469 | if (!QFile::copy(fileInfo.filePath(), destination)) { | - |
| 1470 | QMessageLogger(__FILE__, 32121943, __PRETTY_FUNCTION__).warning("Failed to copy '%s'.", QString(fileInfo.filePath()).toLocal8Bit().constData()); | - |
| 1471 | return result; | - |
| 1472 | } | - |
| 1473 | if (!QFile::setPermissions(destination, QFile::ReadUser | QFile::WriteUser | QFile::ReadGroup)) { | - |
| 1474 | QMessageLogger(__FILE__, 32161947, __PRETTY_FUNCTION__).warning("Failed to set permissions on '%s'.", QString(destination).toLocal8Bit().constData()); | - |
| 1475 | return result; | - |
| 1476 | } | - |
| 1477 | } | - |
| 1478 | } | - |
| 1479 | | - |
| 1480 | result = std::move(tempDir); | - |
| 1481 | | - |
| 1482 | return result; | - |
| 1483 | } | - |
| 1484 | | - |
| 1485 | | - |
| 1486 | | - |
| 1487 | | - |
| 1488 | QString QTest::qFindTestData(const QString& base, const char *file, int line, const char *builddir) | - |
| 1489 | { | - |
| 1490 | QString found; | - |
| 1491 | | - |
| 1492 | | - |
| 1493 | | - |
| 1494 | | - |
| 1495 | if (QCoreApplication::instance()) { | - |
| 1496 | QDir binDirectory(QCoreApplication::applicationDirPath()); | - |
| 1497 | if (binDirectory.exists(base)) { | - |
| 1498 | found = binDirectory.absoluteFilePath(base); | - |
| 1499 | } | - |
| 1500 | else if (QTestLog::verboseLevel() >= 2) { | - |
| 1501 | const QString candidate = QDir::toNativeSeparators(QCoreApplication::applicationDirPath() + QLatin1Char('/') + base); | - |
| 1502 | QTestLog::info(QString(QString::fromLatin1("testdata %1 not found relative to test binary [%2]; " "checking next location").arg(base, candidate)).toLocal8Bit().constData() | - |
| 1503 | | - |
| 1504 | , | - |
| 1505 | file, line); | - |
| 1506 | } | - |
| 1507 | } | - |
| 1508 | | - |
| 1509 | | - |
| 1510 | if (found.isEmpty()) { | - |
| 1511 | const char *testObjectName = QTestResult::currentTestObjectName(); | - |
| 1512 | if (testObjectName) { | - |
| 1513 | QString testsPath = QLibraryInfo::location(QLibraryInfo::TestsPath); | - |
| 1514 | QString candidate = QString::fromLatin1("%1/%2/%3") | - |
| 1515 | .arg(testsPath, QFile::decodeName(testObjectName).toLower(), base); | - |
| 1516 | if (QFileInfo::exists(candidate)) { | - |
| 1517 | found = candidate; | - |
| 1518 | } | - |
| 1519 | else if (QTestLog::verboseLevel() >= 2) { | - |
| 1520 | QTestLog::info(QString(QString::fromLatin1("testdata %1 not found in tests install path [%2]; " "checking next location") .arg(base, QDir::toNativeSeparators(candidate))).toLocal8Bit().constData() | - |
| 1521 | | - |
| 1522 | | - |
| 1523 | , | - |
| 1524 | file, line); | - |
| 1525 | } | - |
| 1526 | } | - |
| 1527 | } | - |
| 1528 | | - |
| 1529 | | - |
| 1530 | if (found.isEmpty()) { | - |
| 1531 | | - |
| 1532 | QFileInfo srcdir = QFileInfo(QFile::decodeName(file)).path(); | - |
| 1533 | | - |
| 1534 | | - |
| 1535 | | - |
| 1536 | if (!srcdir.isAbsolute() && builddir) { | - |
| 1537 | srcdir.setFile(QFile::decodeName(builddir) + QLatin1String("/") + srcdir.filePath()); | - |
| 1538 | } | - |
| 1539 | | - |
| 1540 | QString candidate = QString::fromLatin1("%1/%2").arg(srcdir.canonicalFilePath(), base); | - |
| 1541 | if (QFileInfo::exists(candidate)) { | - |
| 1542 | found = candidate; | - |
| 1543 | } | - |
| 1544 | else if (QTestLog::verboseLevel() >= 2) { | - |
| 1545 | QTestLog::info(QString(QString::fromLatin1("testdata %1 not found relative to source path [%2]") .arg(base, QDir::toNativeSeparators(candidate))).toLocal8Bit().constData() | - |
| 1546 | | - |
| 1547 | , | - |
| 1548 | file, line); | - |
| 1549 | } | - |
| 1550 | } | - |
| 1551 | | - |
| 1552 | | - |
| 1553 | if (found.isEmpty()) { | - |
| 1554 | QString candidate = QString::fromLatin1(":/%1").arg(base); | - |
| 1555 | if (QFileInfo::exists(candidate)) | - |
| 1556 | found = candidate; | - |
| 1557 | } | - |
| 1558 | | - |
| 1559 | | - |
| 1560 | if (found.isEmpty()) { | - |
| 1561 | QString candidate = QString::fromLatin1("%1/%2").arg(QDir::currentPath()).arg(base); | - |
| 1562 | if (QFileInfo::exists(candidate)) | - |
| 1563 | found = candidate; | - |
| 1564 | } | - |
| 1565 | | - |
| 1566 | | - |
| 1567 | if (found.isEmpty()) { | - |
| 1568 | QString candidate = QTest::mainSourcePath % QLatin1Char('/') % base; | - |
| 1569 | if (QFileInfo::exists(candidate)) | - |
| 1570 | found = candidate; | - |
| 1571 | } | - |
| 1572 | | - |
| 1573 | if (found.isEmpty()) { | - |
| 1574 | QTest::qWarn(QString(QString::fromLatin1("testdata %1 could not be located!").arg(base)).toLocal8Bit().constData() | - |
| 1575 | , | - |
| 1576 | file, line); | - |
| 1577 | } | - |
| 1578 | else if (QTestLog::verboseLevel() >= 1) { | - |
| 1579 | QTestLog::info(QString(QString::fromLatin1("testdata %1 was located at %2").arg(base, QDir::toNativeSeparators(found))).toLocal8Bit().constData() | - |
| 1580 | , | - |
| 1581 | file, line); | - |
| 1582 | } | - |
| 1583 | | - |
| 1584 | return found; | - |
| 1585 | } | - |
| 1586 | | - |
| 1587 | | - |
| 1588 | | - |
| 1589 | QString QTest::qFindTestData(const char *base, const char *file, int line, const char *builddir) | - |
| 1590 | { | - |
| 1591 | return qFindTestData(QFile::decodeName(base), file, line, builddir); | - |
| 1592 | } | - |
| 1593 | | - |
| 1594 | | - |
| 1595 | | - |
| 1596 | void *QTest::qData(const char *tagName, int typeId) | - |
| 1597 | { | - |
| 1598 | return fetchData(QTestResult::currentTestData(), tagName, typeId); | - |
| 1599 | } | - |
| 1600 | | - |
| 1601 | | - |
| 1602 | | - |
| 1603 | void *QTest::qGlobalData(const char *tagName, int typeId) | - |
| 1604 | { | - |
| 1605 | return fetchData(QTestResult::currentGlobalTestData(), tagName, typeId); | - |
| 1606 | } | - |
| 1607 | | - |
| 1608 | | - |
| 1609 | | - |
| 1610 | void *QTest::qElementData(const char *tagName, int metaTypeId) | - |
| 1611 | { | - |
| 1612 | do { if (!(tagName)) qt_assert("tagName",__FILE__,33622093); } while (0); | - |
| 1613 | QTestData *data = QTestResult::currentTestData(); | - |
| 1614 | do { if (!(data)) qt_assert("data",__FILE__,33642095); } while (0); | - |
| 1615 | do { if (!(data->parent())) qt_assert("data->parent()",__FILE__,33652096); } while (0); | - |
| 1616 | | - |
| 1617 | int idx = data->parent()->indexOf(tagName); | - |
| 1618 | do { if (!(idx != -1)) qt_assert("idx != -1",__FILE__,33682099); } while (0); | - |
| 1619 | do { if (!(data->parent()->elementTypeId(idx) == metaTypeId)) qt_assert("data->parent()->elementTypeId(idx) == metaTypeId",__FILE__,33692100); } while (0); | - |
| 1620 | | - |
| 1621 | return data->data(data->parent()->indexOf(tagName)); | - |
| 1622 | } | - |
| 1623 | | - |
| 1624 | | - |
| 1625 | | - |
| 1626 | void QTest::addColumnInternal(int id, const char *name) | - |
| 1627 | { | - |
| 1628 | QTestTable *tbl = QTestTable::currentTestTable(); | - |
| 1629 | do { if (!(tbl)) qt_assert_x("QTest::addColumn()", "Cannot add testdata outside of a _data slot.",__FILE__,33792110); } while (0); | - |
| 1630 | | - |
| 1631 | tbl->addColumn(id, name); | - |
| 1632 | } | - |
| 1633 | QTestData &QTest::newRow(const char *dataTag) | - |
| 1634 | { | - |
| 1635 | do { if (!(dataTag)) qt_assert_x("QTest::newRow()", "Data tag can not be null",__FILE__,34022133); } while (0); | - |
| 1636 | QTestTable *tbl = QTestTable::currentTestTable(); | - |
| 1637 | do { if (!(tbl)) qt_assert_x("QTest::newRow()", "Cannot add testdata outside of a _data slot.",__FILE__,34042135); } while (0); | - |
| 1638 | do { if (!(tbl->elementCount())) qt_assert_x("QTest::newRow()", "Must add columns before attempting to add rows.",__FILE__,34052136); } while (0); | - |
| 1639 | | - |
| 1640 | return *tbl->newData(dataTag); | - |
| 1641 | } | - |
| 1642 | const char *QTest::currentAppName() | - |
| 1643 | { | - |
| 1644 | return QTestResult::currentAppName(); | - |
| 1645 | } | - |
| 1646 | const char *QTest::currentTestFunction() | - |
| 1647 | { | - |
| 1648 | return QTestResult::currentTestFunction(); | - |
| 1649 | } | - |
| 1650 | | - |
| 1651 | | - |
| 1652 | | - |
| 1653 | | - |
| 1654 | | - |
| 1655 | const char *QTest::currentDataTag() | - |
| 1656 | { | - |
| 1657 | return QTestResult::currentDataTag(); | - |
| 1658 | } | - |
| 1659 | | - |
| 1660 | | - |
| 1661 | | - |
| 1662 | | - |
| 1663 | bool QTest::currentTestFailed() | - |
| 1664 | { | - |
| 1665 | return QTestResult::currentTestFailed(); | - |
| 1666 | } | - |
| 1667 | void QTest::qSleep(int ms) | - |
| 1668 | { | - |
| 1669 | do { if (!(ms > 0)) qt_assert("ms > 0",__FILE__,34902221); } while (0); | - |
| 1670 | | - |
| 1671 | | - |
| 1672 | | - |
| 1673 | | - |
| 1674 | | - |
| 1675 | | - |
| 1676 | struct timespec ts = { ms / 1000, (ms % 1000) * 1000 * 1000 }; | - |
| 1677 | nanosleep(&ts, __null); | - |
| 1678 | | - |
| 1679 | } | - |
| 1680 | | - |
| 1681 | | - |
| 1682 | | - |
| 1683 | QObject *QTest::testObject() | - |
| 1684 | { | - |
| 1685 | return currentTestObject; | - |
| 1686 | } | - |
| 1687 | | - |
| 1688 | | - |
| 1689 | | - |
| 1690 | void QTest::setMainSourcePath(const char *file, const char *builddir) | - |
| 1691 | { | - |
| 1692 | QString mainSourceFile = QFile::decodeName(file); | - |
| 1693 | QFileInfo fi; | - |
| 1694 | if (builddir) | - |
| 1695 | fi.setFile(QDir(QFile::decodeName(builddir)), mainSourceFile); | - |
| 1696 | else | - |
| 1697 | fi.setFile(mainSourceFile); | - |
| 1698 | QTest::mainSourcePath = fi.absolutePath(); | - |
| 1699 | } | - |
| 1700 | bool QTest::compare_helper(bool success, const char *failureMsg, | - |
| 1701 | char *val1, char *val2, | - |
| 1702 | const char *actual, const char *expected, | - |
| 1703 | const char *file, int line) | - |
| 1704 | { | - |
| 1705 | return QTestResult::compare(success, failureMsg, val1, val2, actual, expected, file, line); | - |
| 1706 | } | - |
| 1707 | | - |
| 1708 | | - |
| 1709 | | - |
| 1710 | | - |
| 1711 | bool QTest::qCompare(float const &t1, float const &t2, const char *actual, const char *expected, | - |
| 1712 | const char *file, int line) | - |
| 1713 | { | - |
| 1714 | return compare_helper(qFuzzyCompare(t1, t2), "Compared floats are not the same (fuzzy compare)", | - |
| 1715 | toString(t1), toString(t2), actual, expected, file, line); | - |
| 1716 | } | - |
| 1717 | | - |
| 1718 | | - |
| 1719 | | - |
| 1720 | | - |
| 1721 | bool QTest::qCompare(double const &t1, double const &t2, const char *actual, const char *expected, | - |
| 1722 | const char *file, int line) | - |
| 1723 | { | - |
| 1724 | return compare_helper(qFuzzyCompare(t1, t2), "Compared doubles are not the same (fuzzy compare)", | - |
| 1725 | toString(t1), toString(t2), actual, expected, file, line); | - |
| 1726 | } | - |
| 1727 | template <> __attribute__((visibility("default"))) char *QTest::toString<short >(const short &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%hd", t); return msg; } | - |
| 1728 | template <> __attribute__((visibility("default"))) char *QTest::toString<ushort >(const ushort &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%hu", t); return msg; } | - |
| 1729 | template <> __attribute__((visibility("default"))) char *QTest::toString<int >(const int &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%d", t); return msg; } | - |
| 1730 | template <> __attribute__((visibility("default"))) char *QTest::toString<uint >(const uint &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%u", t); return msg; } | - |
| 1731 | template <> __attribute__((visibility("default"))) char *QTest::toString<long >(const long &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%ld", t); return msg; } | - |
| 1732 | template <> __attribute__((visibility("default"))) char *QTest::toString<ulong >(const ulong &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%lu", t); return msg; } | - |
| 1733 | | - |
| 1734 | | - |
| 1735 | | - |
| 1736 | | - |
| 1737 | template <> __attribute__((visibility("default"))) char *QTest::toString<qint64 >(const qint64 &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%lld", t); return msg; } | - |
| 1738 | template <> __attribute__((visibility("default"))) char *QTest::toString<quint64 >(const quint64 &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%llu", t); return msg; } | - |
| 1739 | | - |
| 1740 | template <> __attribute__((visibility("default"))) char *QTest::toString<bool >(const bool &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%d", t); return msg; } | - |
| 1741 | template <> __attribute__((visibility("default"))) char *QTest::toString<signed char >(const signed char &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%c""%hhd", t); return msg; } | - |
| 1742 | template <> __attribute__((visibility("default"))) char *QTest::toString<signedunsigned char >(const signedunsigned char &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%hhd""%hhu", t); return msg; } | - |
| 1743 | template <> __attribute__((visibility("default"))) char *QTest::toString<unsigned charfloat >(const unsigned charfloat &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%hhu""%g", t); return msg; } | - |
| 1744 | template <> __attribute__((visibility("default"))) char *QTest::toString<floatdouble >(const floatdouble &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%g""%lg", t); return msg; } | - |
| 1745 | | - |
| 1746 | template <> __attribute__((visibility("default"))) char *QTest::toString<doublechar>(const doublechar &t) | - |
| 1747 | { | - |
| 1748 | unsigned char c = static_cast<unsigned char>(t); | - |
| 1749 | char *msg = new char[12816]; | - |
| 1750 | switch (c) { | - |
| 1751 | caseexecuted 2582 times by 14 tests: case 0x00:Executed by:- tst_Compiler
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAtomicInteger_char
- tst_QBuffer
- tst_QDataStream
- tst_QFile
- tst_QIODevice
- tst_QProcess
- tst_QSharedMemory
- tst_QSslSocket
- tst_QTextStream
- tst_QUdpSocket
- tst_QVariant
0x00:executed 2582 times by 14 tests: case 0x00:Executed by:- tst_Compiler
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAtomicInteger_char
- tst_QBuffer
- tst_QDataStream
- tst_QFile
- tst_QIODevice
- tst_QProcess
- tst_QSharedMemory
- tst_QSslSocket
- tst_QTextStream
- tst_QUdpSocket
- tst_QVariant
| 2582 |
| 1752 | qstrcpy(msg, "'\\0'"); | - |
| 1753 | break;executed 2582 times by 14 tests: break;Executed by:- tst_Compiler
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAtomicInteger_char
- tst_QBuffer
- tst_QDataStream
- tst_QFile
- tst_QIODevice
- tst_QProcess
- tst_QSharedMemory
- tst_QSslSocket
- tst_QTextStream
- tst_QUdpSocket
- tst_QVariant
| 2582 |
| 1754 | caseexecuted 2 times by 1 test: case 0x07: 0x07:executed 2 times by 1 test: case 0x07: | 2 |
| 1755 | qstrcpy(msg, "'\\a'"); | - |
| 1756 | break;executed 2 times by 1 test: break; | 2 |
| 1757 | caseexecuted 2 times by 1 test: case 0x08: 0x08:executed 2 times by 1 test: case 0x08: | 2 |
| 1758 | qstrcpy(msg, "'\\b'"); | - |
| 1759 | break;executed 2 times by 1 test: break; | 2 |
| 1760 | caseexecuted 2 times by 1 test: case 0x09: 0x09:executed 2 times by 1 test: case 0x09: | 2 |
| 1761 | qstrcpy(msg, "'\\t'"); | - |
| 1762 | break;executed 2 times by 1 test: break; | 2 |
| 1763 | caseexecuted 4418 times by 8 tests: case 0x0a:Executed by:- tst_QAtomicInteger_char
- tst_QBuffer
- tst_QFile
- tst_QIODevice
- tst_QRingBuffer
- tst_QSizePolicy
- tst_QTcpSocket
- tst_QTextStream
0x0a:executed 4418 times by 8 tests: case 0x0a:Executed by:- tst_QAtomicInteger_char
- tst_QBuffer
- tst_QFile
- tst_QIODevice
- tst_QRingBuffer
- tst_QSizePolicy
- tst_QTcpSocket
- tst_QTextStream
| 4418 |
| 1764 | qstrcpy(msg, "'\\n'"); | - |
| 1765 | break;executed 4418 times by 8 tests: break;Executed by:- tst_QAtomicInteger_char
- tst_QBuffer
- tst_QFile
- tst_QIODevice
- tst_QRingBuffer
- tst_QSizePolicy
- tst_QTcpSocket
- tst_QTextStream
| 4418 |
| 1766 | caseexecuted 2 times by 1 test: case 0x0b: 0x0b:executed 2 times by 1 test: case 0x0b: | 2 |
| 1767 | qstrcpy(msg, "'\\v'"); | - |
| 1768 | break;executed 2 times by 1 test: break; | 2 |
| 1769 | caseexecuted 2 times by 1 test: case 0x0c: 0x0c:executed 2 times by 1 test: case 0x0c: | 2 |
| 1770 | qstrcpy(msg, "'\\f'"); | - |
| 1771 | break;executed 2 times by 1 test: break; | 2 |
| 1772 | caseexecuted 16 times by 3 tests: case 0x0d:Executed by:- tst_QFile
- tst_QIODevice
- tst_QTcpSocket
0x0d:executed 16 times by 3 tests: case 0x0d:Executed by:- tst_QFile
- tst_QIODevice
- tst_QTcpSocket
| 16 |
| 1773 | qstrcpy(msg, "'\\r'"); | - |
| 1774 | break;executed 16 times by 3 tests: break;Executed by:- tst_QFile
- tst_QIODevice
- tst_QTcpSocket
| 16 |
| 1775 | caseexecuted 4 times by 2 tests: case 0x22: 0x22:executed 4 times by 2 tests: case 0x22: | 4 |
| 1776 | qstrcpy(msg, "'\\\"'"); | - |
| 1777 | break;executed 4 times by 2 tests: break; | 4 |
| 1778 | caseexecuted 2 times by 1 test: case 0x27: 0x27:executed 2 times by 1 test: case 0x27: | 2 |
| 1779 | qstrcpy(msg, "'\\\''"); | - |
| 1780 | break;executed 2 times by 1 test: break; | 2 |
| 1781 | caseexecuted 2 times by 1 test: case 0x5c: 0x5c:executed 2 times by 1 test: case 0x5c: | 2 |
| 1782 | qstrcpy(msg, "'\\\\'"); | - |
| 1783 | break;executed 2 times by 1 test: break; | 2 |
| 1784 | defaultexecuted 3514306 times by 24 tests: default:Executed by:- tst_PlatformSocketEngine
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAtomicInteger_char
- tst_QBuffer
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QDataStream
- tst_QFile
- tst_QIODevice
- tst_QMetaType
- tst_QRingBuffer
- tst_QSemaphore
- tst_QSharedMemory
- tst_QSizePolicy
- tst_QSslSocket
- tst_QString
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- tst_QVariant
- tst_QVector
- tst_QVector_StrictIterators
:executed 3514306 times by 24 tests: default:Executed by:- tst_PlatformSocketEngine
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAtomicInteger_char
- tst_QBuffer
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QDataStream
- tst_QFile
- tst_QIODevice
- tst_QMetaType
- tst_QRingBuffer
- tst_QSemaphore
- tst_QSharedMemory
- tst_QSizePolicy
- tst_QSslSocket
- tst_QString
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- tst_QVariant
- tst_QVector
- tst_QVector_StrictIterators
| 3514306 |
| 1785 | if (c < 0x20| TRUE | evaluated 434 times by 3 testsEvaluated by:- tst_QAtomicInteger_char
- tst_QFile
- tst_QSizePolicy
| | FALSE | evaluated 3513872 times by 24 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAtomicInteger_char
- tst_QBuffer
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QDataStream
- tst_QFile
- tst_QIODevice
- tst_QMetaType
- tst_QRingBuffer
- tst_QSemaphore
- tst_QSharedMemory
- tst_QSizePolicy
- tst_QSslSocket
- tst_QString
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- tst_QVariant
- tst_QVector
- tst_QVector_StrictIterators
|
|| c >= 0x7F| TRUE | evaluated 8656 times by 3 testsEvaluated by:- tst_QAtomicInteger_char
- tst_QTextCodec
- tst_QTextStream
| | FALSE | evaluated 3505216 times by 23 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAtomicInteger_char
- tst_QBuffer
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QDataStream
- tst_QFile
- tst_QIODevice
- tst_QMetaType
- tst_QRingBuffer
- tst_QSemaphore
- tst_QSharedMemory
- tst_QSizePolicy
- tst_QSslSocket
- tst_QString
- tst_QTcpSocket
- tst_QTextStream
- tst_QUdpSocket
- tst_QVariant
- tst_QVector
- tst_QVector_StrictIterators
|
) | 434-3513872 |
| 1786 | qsnprintf(msg, 12816, "%lg""'\\x%02x'", tc);executed 9090 times by 5 tests: qsnprintf(msg, 16, "'\\x%02x'", c);Executed by:- tst_QAtomicInteger_char
- tst_QFile
- tst_QSizePolicy
- tst_QTextCodec
- tst_QTextStream
| 9090 |
| 1787 | else | - |
| 1788 | qsnprintf(msg, 16, "'%c'" , cexecuted 3505216 times by 23 tests: qsnprintf(msg, 16, "'%c'" , c);Executed by:- tst_PlatformSocketEngine
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAtomicInteger_char
- tst_QBuffer
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QDataStream
- tst_QFile
- tst_QIODevice
- tst_QMetaType
- tst_QRingBuffer
- tst_QSemaphore
- tst_QSharedMemory
- tst_QSizePolicy
- tst_QSslSocket
- tst_QString
- tst_QTcpSocket
- tst_QTextStream
- tst_QUdpSocket
- tst_QVariant
- tst_QVector
- tst_QVector_StrictIterators
executed 3505216 times by 23 tests: qsnprintf(msg, 16, "'%c'" , c);Executed by:- tst_PlatformSocketEngine
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAtomicInteger_char
- tst_QBuffer
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QDataStream
- tst_QFile
- tst_QIODevice
- tst_QMetaType
- tst_QRingBuffer
- tst_QSemaphore
- tst_QSharedMemory
- tst_QSizePolicy
- tst_QSslSocket
- tst_QString
- tst_QTcpSocket
- tst_QTextStream
- tst_QUdpSocket
- tst_QVariant
- tst_QVector
- tst_QVector_StrictIterators
);executed 3505216 times by 23 tests: qsnprintf(msg, 16, "'%c'" , c);Executed by:- tst_PlatformSocketEngine
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAtomicInteger_char
- tst_QBuffer
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QDataStream
- tst_QFile
- tst_QIODevice
- tst_QMetaType
- tst_QRingBuffer
- tst_QSemaphore
- tst_QSharedMemory
- tst_QSizePolicy
- tst_QSslSocket
- tst_QString
- tst_QTcpSocket
- tst_QTextStream
- tst_QUdpSocket
- tst_QVariant
- tst_QVector
- tst_QVector_StrictIterators
| 3505216 |
| 1789 | } | - |
| 1790 | returnexecuted 3521340 times by 26 tests: return msg;Executed by:- tst_Compiler
- tst_PlatformSocketEngine
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAtomicInteger_char
- tst_QBuffer
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QDataStream
- tst_QFile
- tst_QIODevice
- tst_QMetaType
- tst_QProcess
- tst_QRingBuffer
- tst_QSemaphore
- tst_QSharedMemory
- tst_QSizePolicy
- tst_QSslSocket
- tst_QString
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- tst_QVariant
- tst_QVector
- ...
msg;executed 3521340 times by 26 tests: return msg;Executed by:- tst_Compiler
- tst_PlatformSocketEngine
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAtomicInteger_char
- tst_QBuffer
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QDataStream
- tst_QFile
- tst_QIODevice
- tst_QMetaType
- tst_QProcess
- tst_QRingBuffer
- tst_QSemaphore
- tst_QSharedMemory
- tst_QSizePolicy
- tst_QSslSocket
- tst_QString
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- tst_QVariant
- tst_QVector
- ...
| 3521340 |
| 1791 | } | - |
| 1792 | | - |
| 1793 | | - |
| 1794 | | - |
| 1795 | char *QTest::toString(const char *str) | - |
| 1796 | { | - |
| 1797 | if (!str) | - |
| 1798 | return 0; | - |
| 1799 | char *msg = new char[strlen(str) + 1]; | - |
| 1800 | return qstrcpy(msg, str); | - |
| 1801 | } | - |
| 1802 | | - |
| 1803 | | - |
| 1804 | | - |
| 1805 | char *QTest::toString(const void *p) | - |
| 1806 | { | - |
| 1807 | char *msg = new char[128]; | - |
| 1808 | qsnprintf(msg, 128, "%p", p); | - |
| 1809 | return msg; | - |
| 1810 | } | - |
| 1811 | | - |
| 1812 | | - |
| 1813 | | - |
| 1814 | bool QTest::compare_string_helper(const char *t1, const char *t2, const char *actual, | - |
| 1815 | const char *expected, const char *file, int line) | - |
| 1816 | { | - |
| 1817 | return compare_helper(qstrcmp(t1, t2) == 0, "Compared strings are not the same", | - |
| 1818 | toString(t1), toString(t2), actual, expected, file, line); | - |
| 1819 | } | - |
| 1820 | | - |
| | |