aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* CMake Build: Make sure testplugin target exists before setting propertyCristian Adam2020-10-201-1/+3
| | | | | | | When doing a minimal build, the testplugin might not be created. Change-Id: Ia4f1cbd14cbdad6e81cb7090a7f52aad692175fa Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Tests: Fix compile and codeChristian Stenger2020-10-202-7/+8
| | | | | Change-Id: I2f2a8a4ff9e7bcd3138b93b177e07f2aa3850fcb Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Debugger: fix various dumper tests for mingwDavid Schulz2020-10-081-16/+38
| | | | | | | | since the gdb uses to hang on windows when calling functions we disabled that functionality reflect that in the QDateTime and QLocale tests. Change-Id: Ie212ab8c7634804e1054bfddfb753de055403c4f Reviewed-by: hjk <hjk@qt.io>
* Tests: Ensure valid project fileChristian Stenger2020-10-071-1/+1
| | | | | Change-Id: Iad22782fee5b330d145ab456c38ff0b9363f0fd2 Reviewed-by: David Schulz <david.schulz@qt.io>
* Debugger: set utf8_source qmake config value for cdbDavid Schulz2020-10-071-6/+5
| | | | | | | fixes cbor test and simplifies char array test Change-Id: I035e393e0e09dc8a16e27dd400a7557d3cf3a006 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Debugger: Simplify QString dumper testhjk2020-10-071-6/+1
| | | | | Change-Id: I53267960155055219c7396eeaee0312602f7011d Reviewed-by: David Schulz <david.schulz@qt.io>
* Merge remote-tracking branch 'origin/4.14' into masterEike Ziller2020-10-066-0/+166
|\ | | | | | | Change-Id: I4ea98cc1c14808afe44030a057f9ff289a57ccfe
| * Debugger: Fix parsing of octal-encoded gdb escapeshjk2020-10-066-0/+166
| | | | | | | | | | | | Fixes: QTCREATORBUG-24462 Change-Id: I89153a04eeef6a2e20fefef45e0efa3712ec0997 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Tests: Fix QJson dumper testChristian Stenger2020-10-051-2/+2
| | | | | | | | | | Change-Id: Ic9f5b7da358164bb9b66f2c75965377cdbf09c4e Reviewed-by: hjk <hjk@qt.io>
* | Tests: Fix boost pro file additionsChristian Stenger2020-10-051-0/+1
|/ | | | | | | | Otherwise we might end up with a messed up project file. Change-Id: I432d45063092d0a5dead3ef975ba3ce5294c1af0 Reviewed-by: David Schulz <david.schulz@qt.io>
* Debugger: Fix char pointer dumper test for cdbDavid Schulz2020-10-011-2/+2
| | | | | Change-Id: I3a1bf50a32076199791283d4bb661feb72c85f6d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Debugger: Make QList test pass with Qt6hjk2020-09-251-2/+16
| | | | | | | | QStringList is a typedef now Task-number: QTCREATORBUG-24098 Change-Id: I0f12655a9b86e4813245fbb08cc0a1c3e21d2dcf Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Debugger: Fix QString dumper test for Qt 6hjk2020-09-251-6/+13
| | | | | | | | QStringRef gone etc. Task-number: QTCREATORBUG-24098 Change-Id: I416f274bccc19c73e226dbf809729c3b72b565a8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Debugger: Show actual type for 'gchar *' elements etcMichael Weghorn2020-09-241-0/+1
| | | | | | | | | | | | | | | | | | | When 'char *' typedefs (and the like) are used, this makes the actual (i.e. the typedef's) type name shown instead of the one that the type is a typedef for. For example, 'gchar' is shown as type for all elements of a 'gchar*' when expanding that one in the debugger's locals or expressions view. Original display of text representation for 'char *' typedefs etc. had been added with commit 70c4889ac9a0d75c93809dd5bb321fcb2272a202 ("Debugger: Show text representation for 'char *' typedefs etc", 2020-06-26). Move the typedef resolution one level down so the original type name is still available for display. This also extends the existing 'gchar *' test case accordingly. Change-Id: I9558360b3bf96906d6dc39a63706bb8ce28c2f1c Reviewed-by: hjk <hjk@qt.io>
* Debugger: Extend Bitfields test for GDB caseMichael Weghorn2020-09-241-2/+22
| | | | | | | | | * add bitfield case for char as well * add tests for expressions view Task-number: QTCREATORBUG-24693 Change-Id: I716dcd0eae3002401c891b733440ea2c6acb32ff Reviewed-by: hjk <hjk@qt.io>
* CPlusPlus: Consider member initializationsChristian Kandeler2020-09-181-13/+27
| | | | | | | ... when checking usage types. Change-Id: Ic875f3bcae9cf045dbb062670e8cf941de533404 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Merge remote-tracking branch 'origin/4.13' into masterEike Ziller2020-09-171-0/+1
|\ | | | | | | | | | | | | Conflicts: src/plugins/qmakeprojectmanager/qmakeproject.cpp Change-Id: Ieb1c3e946f11d3c4fa1ee6b5afdf83cc532d8aed
| * Debugger: Change LLDB value creation hackhjk2020-09-151-0/+1
| | | | | | | | | | | | | | | | | | ... to something that works with LLDB 12. Task-number: QTCREATORBUG-24596 Change-Id: Ib2f8255d45a02fa3d2c737864994397f587e9b15 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | CPlusPlus: Look at all overloadsChristian Kandeler2020-09-151-2/+7
| | | | | | | | | | | | | | | | | | ... when trying to find out the usage type of a function argument. Otherwise, we potentially ignore functions which have additional overloads with a shorter parameter list than is required for the call. Change-Id: I02bf2cb359ea9d506e2644388234dc28fa072445 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | CPlusPlus: Categorize "Find Usages" resultsChristian Kandeler2020-09-031-2/+312
| | | | | | | | | | | | | | | | | | | | | | That is, find out whether a certain access was a read, a write, a declaration or something else, and report the result to upper layers. Follow-up patches can make this information visible to users. Task-number: QTCREATORBUG-12734 Task-number: QTCREATORBUG-19373 Change-Id: Iee79e39dd1eb5a986a7e27846991e0e01b2c3a2f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | CppTools: Fix CppSelectionChanger autotestChristian Kandeler2020-08-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | ... on Windows. We need to open the test file in text mode. Otherwise the raw string literal will contain carriage returns. As these get dropped by QTextDocument, the offsets will be inconsistent with the ones reported by the tokens, causing the test to fail. Change-Id: I161a3f5791c33416ff732f90fd615cf39d8152ce Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Merge remote-tracking branch 'origin/4.13' into masterEike Ziller2020-08-217-0/+124
|\| | | | | | | | | | | | | Conflicts: CMakeLists.txt Change-Id: I799060da2cb299bb0c49a3da3530fad18427a23c
| * Utils: Fix persisting of QRectChristian Stenger2020-08-197-0/+124
| | | | | | | | | | | | | | | | | | | | | | | | And pass explicitly a QVariant to the writer to avoid unexpected behavior when trying to store the geometry of a widget. This resulted in a warning for any session where the user had used the debugger at least once. Change-Id: I5cb2352ab29ff7d2a64c84ffcdf040efe6d04b94 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: hjk <hjk@qt.io>
* | Merge remote-tracking branch 'origin/4.13' into masterEike Ziller2020-08-135-11/+148
|\| | | | | | | | | | | | | Conflicts: src/plugins/android/androiddeployqtstep.cpp Change-Id: Id624bad384050d567efba0700046331086cb12dd
| * Merge remote-tracking branch 'origin/qds-1.59' into 4.13Tim Jenssen2020-08-135-11/+148
| |\ | | | | | | | | | Change-Id: Ic720f3adab305c5ef8cd10e713ccabf510eff0c0
| | * QmlDesigner: Split messaging and process for puppetsMarco Bubke2020-08-105-11/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will make it easier to implement custom puppets. The new connection manager will restucture the code and it add a mechanism to capture data too. Task-number: QDS-2529 Change-Id: I5d15c3303ef1c9a3e25ba197d350e0d561ce813a Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* | | Merge remote-tracking branch 'origin/4.13' into masterEike Ziller2020-08-131-18/+19
|\| | | | | | | | | | | Change-Id: I1c426d95eedd82bd4470a64a9bafd734d23081ac
| * | CPlusPlus: Fix expectations in preprocessor autotestChristian Kandeler2020-08-121-18/+19
| | | | | | | | | | | | | | | | | | | | | | | | ... regarding unfinished macro calls. Amends df0ffd8bb8. Change-Id: Ia7b8752860ac9207e702697cbee87f16a39dd1dd Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | | Utils::Environment: Extend autotestChristian Kandeler2020-08-111-0/+41
| | | | | | | | | | | | | | | | | | | | | ... to cover the diff/apply mechanism. Change-Id: I7d9e794792d6730e935c99c66062ea417dc65fe7 Reviewed-by: hjk <hjk@qt.io>
* | | Merge remote-tracking branch 'origin/4.13' into masterEike Ziller2020-08-1012-687/+55
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs qtcreator_ide_branding.pri src/plugins/cmakeprojectmanager/cmakebuildstep.cpp src/plugins/cmakeprojectmanager/cmakebuildstep.h tests/auto/debugger/tst_namedemangler.cpp tests/auto/qml/codemodel/check/tst_check.cpp Change-Id: Iefd5f71c03c0078513b76a92af764a4fb22ee4c2
| * | qmljs: qtdeclarative change 9ab1a6759018b78b0f160c5286f8b0235a34ec50Fawzi Mohamed2020-08-032-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support required list properties The corresponding rules were missing so far. Fixes: QTBUG-85716 Change-Id: Iaf0cbfbb8736929a213bd6bf329bb2ebdde652c4 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
| * | Tests: Fix codemodel check testChristian Stenger2020-07-303-31/+41
| | | | | | | | | | | | | | | Change-Id: I9ca0fec928ac90fd5951fc54963ba5e96d5a53a6 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@qt.io>
| * | Tests: Fix nullptr accessChristian Stenger2020-07-301-0/+1
| | | | | | | | | | | | | | | Change-Id: I4e2bf36dfa6e16dfd9924c865bd9a997750243a2 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
| * | Debugger: Remove name demanglerChristian Kandeler2020-07-206-656/+0
| | | | | | | | | | | | | | | | | | | | | Never been used, completely outdated, fails autotest. Change-Id: I2c1808b4a66e9abdb839670eeae3e5226c7246ba Reviewed-by: hjk <hjk@qt.io>
* | | Tests: Do not fail if boost compile failsChristian Stenger2020-08-101-0/+11
| | | | | | | | | | | | | | | Change-Id: Iaa74f0c5911f328ca041a8f8e84c760187f6c38f Reviewed-by: hjk <hjk@qt.io>
* | | Tests: Fix compileChristian Stenger2020-08-101-2/+2
| | | | | | | | | | | | | | | | | | | | | Amends 52b2ca55c9ba0c. Change-Id: I82b2ae8a353fc6ebe46e38956100fd3dce53fdf6 Reviewed-by: hjk <hjk@qt.io>
* | | Replace QT_USE_FAST_{OPERATOR_PLUS,CONCATENTION} by QT_USE_QSTRINGBUILDERhjk2020-08-077-34/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QT_USE_FAST_CONCATENATION doesn't do anything nowadays. Using QT_USE_QSTRINGBUILDER is the same as QT_USE_FAST_OPERATOR_PLUS for QStrings and enables more QStringBuilder use for QByteArrays. Change-Id: Ibd297817c50d86661d47822799f989447249af1b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | | CppTools: Fix formatting for lambdas with trailing return typeChristian Kandeler2020-07-311-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | After the arrow, the state is still the same, as now a type is expected. Only after the opening brace does the actual function start. Fixes: QTCREATORBUG-18497 Change-Id: I7bf18fbd6907d36f8869af3a78ad617cf0ee9dbb Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | | Tests: Fix conditionChristian Stenger2020-07-301-1/+1
| | | | | | | | | | | | | | | | | | | | | Amends eb52982c9d7f. Change-Id: I47b145b678eafab90f3569e4f6a785f272a87666 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | | qbs build: Fix valgrind test failureChristian Kandeler2020-07-273-6/+13
| | | | | | | | | | | | | | | Change-Id: I563d9b61e0e281058dac46ed913b3102f70c4d90 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | | qbs build: Add convenience properties for sanitizersChristian Kandeler2020-07-271-0/+1
| | | | | | | | | | | | | | | Change-Id: I8c0908ed482127712c1cf4052d7b792be5ba79ae Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | | QML code model test: Show unexpected messagesChristian Kandeler2020-07-241-1/+2
| | | | | | | | | | | | | | | | | | | | | The failure output is not very helpful without them. Change-Id: I827876336c3ffdebb0b071f6d1a743c6766d92fb Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | | Debugger: Fix QVariant2 autotesthjk2020-07-241-1/+1
| | | | | | | | | | | | | | | | | | | | | Amends eb52982c9d7. Change-Id: I8ca2e2b03d0d5755c97523292fa6b4fbe0882cb7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | | Tests: Replace QRegExp by QRegularExpressionChristian Stenger2020-07-203-37/+44
| | | | | | | | | | | | | | | | | | Task-number: QTCREATORBUG-24098 Change-Id: I8649423fc69faadad324bc3bb51004633fa7cc4d Reviewed-by: hjk <hjk@qt.io>
* | | Debugger: Fix QV4 dumper test namehjk2020-07-171-1/+1
| | | | | | | | | | | | | | | Change-Id: I561e088c7b789903b0fb6867a2a2b5edf8eef63f Reviewed-by: David Schulz <david.schulz@qt.io>
* | | Merge remote-tracking branch 'origin/4.13'Eike Ziller2020-07-062-2/+2
|\| | | | | | | | | | | Change-Id: I0125351c7c6fa33f9fc7171469493e4fa53e87c4
| * | qbs build: Fix sdktool autotestChristian Kandeler2020-07-061-1/+1
| | | | | | | | | | | | | | | Change-Id: I069d9b3eaea295efa8d78d4d96b52b61cecbb783 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| * | Debugger: Set WITH_DEBUGGER_DUMPERS to ON by defaulthjk2020-07-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The option went in with the initial CMale port, presumably because the test itself created and compile qmake projects at the time. I do not think it makes sense to leave out existing tests by default, even if they run for some time. Change-Id: I7ff055a2a432b9d8f6af16f7da63ebc56995c31e Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | | Merge remote-tracking branch 'origin/4.13'Eike Ziller2020-07-061-1/+2
|\| | | | | | | | | | | Change-Id: I015bac0cccdf466a923c706abdedd8bd8800b0cd
| * | QmlDesigner: Fix test buildThomas Hartmann2020-07-011-1/+2
| | | | | | | | | | | | | | | Change-Id: Ib24054b9caa1a2b1404c8af7af7f85bc3de1e6b2 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>