aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* Debugger: Show FORTRAN stringshjk2019-09-231-0/+35
| | | | | | Fixes: QTCREATORBUG-22976 Change-Id: Ib435b2692301fe2e2d3378623e99bbcf16e27e46 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Tests: Fix expectation for parent of COM portChristian Stenger2019-09-121-1/+1
| | | | | | | Keep expected path in line with result when using QFileInfo. Change-Id: I8d323212d1627b81de01582c368a4e9ffbba734c Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Debugger: add dumper for std::initializer_listDavid Schulz2019-09-091-0/+27
| | | | | Change-Id: I223182cecf1f04dbc9908dc993a8800c1633c48b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Debugger: Fix mapping std::set in Locals window via gdbDmitry Nuzhdin2019-08-261-5/+6
| | | | | | | | | | Currently QtCreator incorrectly shows content of a std::set. For example set {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} is shown as {0, 1, 2, 1, 2, 1, 2, 1, 2}. Change-Id: Idaff66451827657ef129aa3d27895c43938e6fdc Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: hjk <hjk@qt.io>
* Debugger: Disable QObject connection and signal displayhjk2019-07-311-2/+3
| | | | | | | | Besides the announced change to QObject guts in a5a859e72 there has been at least 6e0b5dadc and possibly more, so give up here. Change-Id: I84201cef9f2a7515f082f4c3310bdc96f7a4216d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Debugger: Fix QFileDumperhjk2019-07-311-1/+16
| | | | | | | | Some QRingBuffer member got removed in 8f92baf5c9. Change-Id: Ie0066db3b61bff25751a4886cb4b584cc4db49bf Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* QmlDesigner: Extend testThomas Hartmann2019-07-301-0/+2
| | | | | Change-Id: I3850814303bc791934044f10a955cfcbc78e76ef Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* CMake build: Add "Devel" packageCristian Adam2019-07-2521-32/+34
| | | | | | | | | The "Devel" package will contain headers, libraries, documentation needed by the 3rd parties to build Qt Creator plugins. Fixes: QTCREATORBUG-22514 Change-Id: If54929f823982b921b98a63ff6085d53618a3a49 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Debugger: Fix CharArrays dumper testDavid Schulz2019-07-181-4/+4
| | | | | Change-Id: I041700a2a6ddac7f3a07b0e0d5dd876a9d542f5b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Tests: Skip ssh related test conditionallyChristian Stenger2019-07-161-0/+3
| | | | | | | | | If there is no ssh tool present in PATH the test will fail, so do not expect all machines having ssh explicitly defined in PATH. Change-Id: Ic56898ac6a31e75cd2efae6f10464a9aab04b326 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Debugger: fix cdb dumper test for namespaced QtDavid Schulz2019-07-091-13/+13
| | | | | Change-Id: I5cbf1db4cffb19ee63ab80dcd6e2a8659cd44389 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Debugger: Fix rvalue dumper test for cdbDavid Schulz2019-07-021-4/+5
| | | | | Change-Id: I4c977944928e97c69f7d1f4b1c666a42b443481a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Debugger: Fix qdir dumper test for cdbDavid Schulz2019-07-021-4/+4
| | | | | | | | entryInfoList and entryList is not supported by cdb, because we cannot call the count function to populate these lists. Change-Id: I6f1f2b5905232d4b220120b1b0a20bfea029c9f0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Add tests for printers with custom allocatorsMichael Weghorn2019-07-011-3/+24
| | | | | | | | | | | | | Add tests for the cases where std::vector and std::basic_string are used with custom allocators, which were fixed by commits 01f26bd5b748a7b2257debd0f6d35fb15fcaa284 ("Fix std::vector<bool> printer with custom allocator") and 5eba3bde9369fa084f2fe4d935f302ea2061db83 ("Fix std::basic_string printer with custom allocator"). Change-Id: I4de9de551d329b7d2ea821d09b04d39da13f1edf Reviewed-by: hjk <hjk@qt.io>
* LSP: Fix language server auto testsDavid Schulz2019-07-011-3/+3
| | | | | | | broken by ea81b676c76ebbb20d47b5943e808524966784c8 Change-Id: I4e4359669de31e2ddb1e123bece6bd75222ec888 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* QmlJS: Fix code re-formatter for propertyTim Jenssen2019-06-201-0/+2
| | | | | | | Fixes: QTCREATORBUG-22515 Change-Id: Ie560f8cf9e43081a37f2210ea2f6df741f14ced6 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Clang build: Fix compilation with MSVC2017v4.10.0-beta1Cristian Adam2019-06-171-1/+1
| | | | | Change-Id: I677614dc8f9de503131d8ac490a723c9fc5f7beb Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Port from QLatin1Literal to QLatin1StringGiuseppe D'Angelo2019-06-132-3/+3
| | | | | | | | QLatin1Literal is an undocumented and deprecated typedef for QLatin1String, just use the original. Change-Id: I42347a2128e7b4280aaafeea5ebdee5a1b623c82 Reviewed-by: hjk <hjk@qt.io>
* Tests: Enable callgrind parser tests on WindowsChristian Stenger2019-06-132-1/+1
| | | | | Change-Id: I7f8ebcc27b4acd9494fa30d87089d01454b35c48 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* qml | Fix functions and loops formattingUladzislau Paulovich2019-06-111-0/+6
| | | | | | | | | | | | | | Bugs fixed in this change: 1. Incorrect function arguments formatting: function(a, b, c) -> function(abc) 2. Incorrect foreach loop formatting: for (var a in b) -> for (a in b) 3. Incorrect for loop formatting: for (var a = 1; a < 100; ++a) -> for(; a < 100; ++a) Change-Id: I8afef6e5f2485a2225931b7ecb7210506e06dc6c Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* qml | Fix trailing comments formattingUladzislau Paulovich2019-06-111-0/+8
| | | | | Change-Id: I0461c4616cff15b7010e3844850d32e9f07469ea Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* qml | Fix empty objects formattingUladzislau Paulovich2019-06-113-2/+5
| | | | | Change-Id: I760f3420fef9ca83c2a28586575a72d580658d0f Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* SSH: Fix autotestChristian Kandeler2019-06-111-6/+10
| | | | | | | | - Consider the case of connection sharing being disabled. - Adapt to slower environments. Change-Id: I088622034c26ea343eb78161b24c43b3286b0512 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* qml | Add support for enums formattingUladzislau Paulovich2019-06-111-0/+14
| | | | | Change-Id: Id7e435a7c556c7fc469b9055ca772a7850e16676 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* qml | Fix let/const variables formattingUladzislau Paulovich2019-06-111-0/+4
| | | | | Change-Id: Ia2a4ee482e84a6c24abea7ea6fe05925eee11d1d Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Merge remote-tracking branch 'origin/4.10'Eike Ziller2019-06-065-9/+7
|\ | | | | | | Change-Id: Ie1861bb221a9974d78938e9a2078c1f6aa207210
| * CPlusPlus: Avoid a few deprecation warningshjk2019-06-055-9/+7
| | | | | | | | | | | | | | The alternatives have been around since 2012. Change-Id: I0aa15d59efe8a547e2ad622ffda689746960d48c Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* | CMake build: Skip installation of test plugins / executablesCristian Adam2019-06-057-0/+7
| | | | | | | | | | | | | | Our tests run from the build folder. We do not need to install them. Change-Id: Iaeb27e466fe0d43bc15fa3eee3bf6d2659b87083 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | Ssh: Tiny test simplificationhjk2019-06-051-2/+1
| | | | | | | | | | Change-Id: I199e2b422288d29d0a3a059ddc0d145bcb27082b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Tests: Fix compile on Win - Take 2Christian Stenger2019-06-041-1/+2
|/ | | | | | | Amends 1ecfb2d941d3. Change-Id: Ibea1fe2f117234ca04caa35ec0b381814fa6d49c Reviewed-by: hjk <hjk@qt.io>
* Tests: Fix compile on WinChristian Stenger2019-06-031-1/+1
| | | | | | | Amends 4098be05b23dd. Change-Id: Icc28162630470d3beab7ef9867e907cab6804688 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Fix C++ Library wizard when compiled with Qt < 5.12Eike Ziller2019-06-031-1/+11
| | | | | | | | | | | | Only Qt 5.12 got true ECMA Script capabilities, so arrow function expressions are not supported before that. To be able to use "regular" inline functions, we allow usage of } by escaping with backslash. For variables that do not start with "JS:" we already supported backslash for escaping. Fixes: QTCREATORBUG-22336 Change-Id: I9fc638e64d2757a21fffc16355635e2fcff87a36 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* sdktool: Adapt testsChristian Stenger2019-06-031-1/+3
| | | | | | | | | The names for registered Qt, cmake and toolchain must no more be unique. Amends e9e4c27e3a3f157291a231b8a746bb76dea525b7. Change-Id: Icea00636f3632148f209616de3473816e12e4655 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* connect() to ambiguous signals/slots: Replace static_cast with QOverloadAlessandro Portale2019-05-281-1/+1
| | | | | Change-Id: I473d7a2a16509cee944a2a21b022a3f6f02cfd8d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Utils: Rename FileName to FilePathhjk2019-05-288-39/+39
| | | | | | | | More in line with QFileInfo terminonlogy which appears to be best-of-breed within Qt. Change-Id: I1d051ff1c8363ebd4ee56376451df45216c4c9ab Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* CMake build: Add missing test dependencyEike Ziller2019-05-281-1/+1
| | | | | Change-Id: I5ba945e5ceb0fc680c5e768ec1797f2a9356f70a Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* Use Qt's QFileInfoList instead of QList<QFileInfo>hjk2019-05-281-1/+1
| | | | | | | Helps to adapt to potential upstream changes in Qt 6 Change-Id: Ie154bd4fd513d46cb0493758be8943fc4581d71c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* ProjectExplorer: Introduce a alias for QList<Tasks>hjk2019-05-282-2/+1
| | | | | Change-Id: I91391ad22b420926b0f512cac23cfe009048b218 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* ExtensionSystem: Move away from QListEike Ziller2019-05-272-5/+5
| | | | | | | | Qt 6 API will move away from it. Use QVector for API and some std container for internal things. Change-Id: Iff14d48a47d5ac52ade875d9c8c84ad8a4f577d8 Reviewed-by: hjk <hjk@qt.io>
* Replace uses of qVariantFromValue with QVariant::fromValuehjk2019-05-271-1/+1
| | | | | | | | Deprecated in Qt 5.14, alternative has been around since Qt 4 at least. Change-Id: I4e3a53c289088368609e0d0ce2405a832d311308 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* More FileName::pathAppended()hjk2019-05-201-1/+1
| | | | | Change-Id: Ie20ec34ea9712b3ec49e6233b23cef84c2019f03 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Qt Creator CMake portCristian Adam2019-05-1788-0/+558
| | | | | | | | | | | | | | Based on Tobias Hunger's work from a few months ago. The CMake configuration needs libclang and Qt paths specified as CMAKE_PREFIX_PATH. Auto tests are run with "ctest". At the moment the pass rate is 87%. Change-Id: Iba98e39bf22077d52706dce6c85986be67a6eab0 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Tests: Fix missing curly braceChristian Stenger2019-05-171-0/+1
| | | | | | Change-Id: Ib24625cdeae1b2f9a1b41eecb59e52f572eb793b Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* QmlDesigner: Fix subtle issue with transactionThomas Hartmann2019-05-172-0/+38
| | | | | | | | | In an transaction adding a property after reparenting did fail without real reason. If a node does not have a position (yet) we can ingore the operation. Change-Id: I959f1cf50ac6bcacda2a29b37ae69e37158e9acd Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Compile fixhjk2019-05-151-1/+1
| | | | | | | ... after f99d69ee43 Change-Id: I711f8809dbdd7878b6c7fcc092f3391a2c4cebfe Reviewed-by: David Schulz <david.schulz@qt.io>
* Merge remote-tracking branch 'origin/4.9'Eike Ziller2019-05-082-0/+59
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/src/howto/creator-sidebar-views.qdoc doc/src/howto/creator-ui.qdoc qbs/modules/qtc/qtc.qbs qtcreator.pri src/plugins/autotest/testresultmodel.cpp src/plugins/autotest/testresultmodel.h Change-Id: I24cc585ca7782cb1d9cb0b8b73b46892b41937fd
| * QmlDesigner.Tests: Add regression testThomas Hartmann2019-05-022-0/+59
| | | | | | | | | | | | | | | | Adding regression test for revisioned properties Task-number: QTCREATORBUG-22057 Change-Id: I79d1bf1167944fc005179b064703e217a6494e33 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Tools: Use "QTC_" prefix for build-system environment variablesAlessandro Portale2019-04-291-3/+3
| | | | | | | | | | | | Change-Id: I4b75dce6a2c7bd794b8c330521292c86057e63ef Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Merge remote-tracking branch 'origin/4.9'Orgad Shaneh2019-04-075-5/+5
|\| | | | | | | Change-Id: I7d1912cd5c4d824fd40d3454c5f1bb796f2c21d8
| * QmlDesigner.Tests: import Qt 4.7 is not supported anymoreThomas Hartmann2019-04-035-5/+5
| | | | | | | | | | Change-Id: I47479f13985a0b143845870983fe28baa52badbc Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>