aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* UnitTest: Fix escaping of LLVM output on WindowsOrgad Shaneh2020-08-071-1/+1
| | | | | | | Complements 1929c38a9fd6df8257069ba505c88c8a57a5352f. Change-Id: I95e32baf477e42003f1e97c73fd557b480de33a7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* 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>
* qbs build: Fix spurious re-resolvingChristian Kandeler2020-07-311-0/+1
| | | | | | | | The pluginjson module records the VCS state by default, which means qbs re-resolved the project after every git action. Prevent that. Change-Id: I24cf1d658ba847b327be018749806856a6e7da1b Reviewed-by: Christian Stenger <christian.stenger@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>
* UnitTests: Re-enable CMake unittestsCristian Adam2020-07-243-3/+4
| | | | | | | Ammeds 327bec26bfa25a06f511eb361e65567086df29a7 Change-Id: I34b62532da424b3b4fb0290049150f6ba444283b Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Squish: Stabilize menuVisibleAtEditor() even moreChristian Stenger2020-07-221-1/+3
| | | | | | | | | If the machine fails to correctly initialize the desktop environment we end up with a rather small resolution which in turn makes the condition useless. Change-Id: Idcea7f4e2a5dd265442b5c9d98bf42ed7f01c8af Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Update expected completion proposalRobert Loehning2020-07-211-1/+1
| | | | | | Change-Id: I89f44690bdda5a12776f39efb7b1872ff5e9cc93 Reviewed-by: Robert Loehning <robert.loehning@qt.io> Reviewed-by: Christian Stenger <christian.stenger@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>
* CompilationDatabase: Fix unit testChristian Kandeler2020-07-101-1/+0
| | | | | | | Amends be97943372. Change-Id: Ic840f5eca8a83b5bdf3e3864e8859234472911b7 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* Clang: Fix error when including float.h with mingwChristian Kandeler2020-07-091-0/+33
| | | | | | | | | | | Prevent mingw from trying to #include_next a private header from a path we cannot add to our list of includes. Fixes: QTCREATORBUG-24251 Task-number: QTCREATORBUG-24027 Change-Id: I18a9db130b9c2265cd208c3506d08d2e1c4cee45 Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* Merge "Merge remote-tracking branch 'origin/4.12' into 4.13" into 4.13The Qt Project2020-07-062-1/+2
|\
| * Merge remote-tracking branch 'origin/4.12' into 4.13Eike Ziller2020-07-062-1/+2
| |\ | | | | | | | | | | | | | | | | | | Conflicts: share/qtcreator/debugger/lldbbridge.py Change-Id: Ia444f6424fb35b9a539e157afcee868161535272
| | * Squish: Stabilize tst_HELP02Robert Loehning2020-07-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Depending on the sizes of the treeview and its contents, the click might hit the scroll bar and result in a script error. Change-Id: Ic3658b1f180d1aa5a792d6664d2d7f56d8d0c353 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| | * Squish: Fix expectation when canceling a cloneChristian Stenger2020-07-011-1/+1
| | | | | | | | | | | | | | | Change-Id: I674324a4a98e4329c4445de69ceddeffba607ff3 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* | | 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>
* | Core/Utils: Migrate further to Utils::Idhjk2020-07-061-2/+1
| | | | | | | | | | | | | | | | The coreplugin/id.h header is kept for downstream for now. Change-Id: I8c44590f7b988b3770ecdc177c40783e12353e66 (cherry picked from commit 430a33dcd9ac80ddb848e41f8f059102857c88aa) Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | clangbackend: Do not handle built-in types speciallyChristian Kandeler2020-07-062-0/+18
| | | | | | | | | | | | | | | | | | ... when collecing tooltips. The more general functions provide more information, such as constness. Fixes: QTCREATORBUG-14950 Change-Id: I6d0a890a695e19e9754b5538ba092a188a3bbbb0 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* | Fix qbs buildChristian Kandeler2020-07-031-0/+3
| | | | | | | | | | Change-Id: Ic19d1f42d98a0bec31f2f5788063f6b2e7d61cef Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Squish: Don't try to "Save All" when there are no unsaved filesRobert Loehning2020-07-022-2/+0
| | | | | | | | | | Change-Id: I431c9754d84d36f0c09e45e6c43fe67f173da59f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Squish: Update expected outputRobert Loehning2020-07-021-1/+1
| | | | | | | | | | Change-Id: If5fdc09ee57ab476e7d434f084fffceb82df23cf Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Squish: Update menu itemsRobert Loehning2020-07-023-4/+4
| | | | | | | | | | Change-Id: Ibbca07fb02092ce829246e99b2365b513b1fa4e0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Merge remote-tracking branch 'origin/qds-1.59' into 4.13Tim Jenssen2020-07-021-1/+1
|\ \ | | | | | | | | | Change-Id: Ia5756102fa014a8376c8b277e9a50a112c594d35
| * | UnitTests: Temporary disable the testsMarco Bubke2020-07-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | I added QmlDesigner to the unit tests but I have no clue have this can work with CMake. We only want some source files and are preloading some other header. Change-Id: Iadf8ca09b7e63055d1e2ff231a15ef7be2891204 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | | Merge "Merge remote-tracking branch 'origin/qds-1.59' into 4.13" into 4.13The Qt Project2020-07-0128-11/+2127
|\ \ \
| * | | Merge remote-tracking branch 'origin/qds-1.59' into 4.13Tim Jenssen2020-07-0128-11/+2127
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/tools/clangpchmanagerbackend/source/pchtaskqueue.h Change-Id: Ibe8ac2fa0eafcbcc86ac445f0be035839e06ff40
| | * | QmlDesigner: Add listmodeleditorMarco Bubke2020-06-308-7/+1020
| | | | | | | | | | | | | | | | | | | | | | | | Task-number: QDS-2294 Change-Id: I66cae3a0d4265ab112eaf6b04e3a5972d185ff43 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
| | * | ClangRefactoring: Remove not used pch filesMarco Bubke2020-06-307-2/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because we use UUID for pch files every time we rebuild a pch we get a new file. This patch is collecting and removing this pch files. Change-Id: Ia8688e7215ee7b41f39b2285323eaa345056bda3 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
| | * | Refactoring: Fix unit testsMarco Bubke2020-06-301-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One if the LLVM 10 hot fixes was not working. Change-Id: I1e6cab39ffd5c52f55fb83ff777f6eca457dea35 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
| | * | QmlDesigner: Break dependenciesMarco Bubke2020-06-3016-1/+935
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To get the model under unit tests we have to break every depenedency to code outside of the unit test scope. Change-Id: Ib613c3308e48990c55b2ed0cd42bc4b0e1041a01 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | | | QmlDesigner: Fix test buildThomas Hartmann2020-07-011-1/+2
|/ / / | | | | | | | | | | | | Change-Id: Ib24054b9caa1a2b1404c8af7af7f85bc3de1e6b2 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | | QmlDesigner: Fix testsThomas Hartmann2020-06-301-1/+1
| | | | | | | | | | | | | | | Change-Id: I74442bf004a462d5d310f128b64f8bc82073d822 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* | | CMake build: Make option to include dumper tests discoverableEike Ziller2020-06-301-0/+1
| | | | | | | | | | | | | | | Change-Id: I9828f362561b8392d31a56f8a60fe9531accf4ce Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | | CMake build: Remove timeout for dumper testsEike Ziller2020-06-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | They take much longer, but are also optional. Makes it possible to run via e.g. "ctest -V -R tst_debugger_dumpers" Change-Id: I8bbda6ca36e25cd896b1f3be5d1696a27b8acc53 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
* | | Merge remote-tracking branch 'origin/qds-1.59' into 4.13Tim Jenssen2020-06-261-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/clangformat/clangformatplugin.cpp src/plugins/qmldesigner/designercore/model/qmlitemnode.cpp src/plugins/qmldesigner/qmldesigner.qbs Change-Id: Ie4a0beeb9fd32ac9683f4e8769988a9c3f3e369a
| * | UnitTests: Fix fake project.hMarco Bubke2020-06-161-1/+1
| | | | | | | | | | | | | | | Change-Id: I5bd3be88c900af0caaccf8ca3ba2793f20ccf6f8 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | | Tests: Fix deprecation warningChristian Kandeler2020-06-261-1/+1
| | | | | | | | | | | | | | | | | | Task-number: QTCREATORBUG-24098 Change-Id: Icea21e446173537d8fdb8113f1eff7d7176c34b3 Reviewed-by: hjk <hjk@qt.io>
* | | Sqlite: Fix a compiler warning about unhandled switch-caseArtur Shepilko2020-06-241-0/+1
| | | | | | | | | | | | | | | Change-Id: Id9cb6ebd6db7f718f8aa3e25d56581f953ad182e Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* | | C++: Fix auto variable resolving for template class constructor callVolodymyr Zibarov2020-06-221-0/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Code snippet: template<class T> struct MyStruct { int value; }; int main() { auto s = MyStruct<int>(); s.value; // "value" is not found } This fixes find usages for unique_ptr declared as auto like this: auto ptr = std::unique_ptr<MyStruct>(new MyStruct()); ptr->value; Also fixes in-place constructors: std::unique_ptr<MyStruct>(new MyStruct())->value; Fixes: QTCREATORBUG-15364 Change-Id: I8d452a77fe85e63665ec8d4c4afbcf8aad063121 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | | Merge remote-tracking branch 'origin/4.12'Eike Ziller2020-06-221-57/+0
|\ \ \ | | |/ | |/| | | | Change-Id: I0935f0087efc1ddd4f17fcafc2e3b5c58c23bef4
| * | Squish: Update expected tree for qbsRobert Loehning2020-06-161-57/+0
| | | | | | | | | | | | | | | Change-Id: Ib2fd3ec1df0772de2ae2ef7c4083431ccd32095b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | | ClangBackEnd: Adapt skipped source ranges from libclangChristian Kandeler2020-06-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | ... so that the first #if is not grayed out. Fixes: QTCREATORBUG-23714 Change-Id: Ia014fd8cd768ea9530567ba8c712bdc0c4063091 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | | Debugger: Remove QLinkedList occurrences from manual testshjk2020-06-183-110/+1
| | | | | | | | | | | | | | | | | | | | | | | | And restrict the auto test to Qt<6. Task-number: QTCREATORBUG-24098 Change-Id: Idfbe94bc1a4b2d5a8c23a07a031520775bb17cd3 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | | CPlusPlus: Fix lexer crashChristian Kandeler2020-06-181-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At some point in the preprocessing stage, some tokens get "squeezed", so their associated string no longer refers to the document content, but only to their own symbol. However, there is at least one context that operated under the assumption that the token's offset still pointed into the "global" string. As the token's offset is zero after parsing, this lead to the same piece of code being preprocessed in an infinite loop. Fixes: QTCREATORBUG-19525 Change-Id: I231ba51811cfa0b5c6dfe7f75fe0384472252c6f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | | Move Id from Core to UtilsEike Ziller2020-06-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And add a compatibility wrapper for Core::Id, so we don't have to rename all occurrences from Core::Id to Utils::Id. This allows us to use Id also in Utils, which makes it possible to e.g. move Core::InfoBar to Utils without work arounds. Change-Id: I5555d05b4e52f09d501dbfe5d91252a982a97c61 Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>
* | | Debugger: Start making auto tests work using cmakehjk2020-06-172-54/+192
| | | | | | | | | | | | | | | | | | Change-Id: Ibe6c9bdfb52a16171e6f6acb841f185d936878f3 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | | Tests: Fix Qt 5.15 deprecation warningsChristian Kandeler2020-06-172-10/+10
| | | | | | | | | | | | | | | Change-Id: I458cced795f29479557853919bd6d317e5870f07 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | | sqlite: Fix qbs buildChristian Kandeler2020-06-161-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Exporting the full sqlite interface can lead to run-time conflicts with the system sqlite that Qt's SQL support pulls in. So re-build the sources for the unit test, as in the qmake build. Change-Id: I8394b9c0aa4e21704bc84600f40b8f5d706ad66d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | | C++: Fix Find Usages false positive results for function argumentsVolodymyr Zibarov2020-06-151-0/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Code snippet: void bar(); // call find usages for bar from here void foo(int bar); // bar from here should not be in results Add test for member function false positives, that is part of QTCREATORBUG-2176. That was already fixed before. Fixes: QTCREATORBUG-2176 Change-Id: I9a079caa83bbaea1edb7ba6aeb151d4d4c77952f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>