aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Squish: Workaround bad focus issue when using Squishv4.10.1Christian Stenger2019-10-021-2/+8
| | | | | | | | | | | | When interacting with the file dialog QC seems to lose its focus and never gets it completely back. This in turn makes lots of short cuts useless and (context) menu entries disappear or being disabled. Avoid this by explicitly closing the popup of the line edit if there is one. Change-Id: I79f86b3133d2d0780d73d75e15416d59f35dfa1e Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Stabilize tests that rely on a parsed projectChristian Stenger2019-10-0110-10/+19
| | | | | | | | | | | | As more and more progress bars might be present for different purposes and we are not able to easily distinguish them we need to use a more reliable way to wait for the end of parsing a project. Add a respective function and use the new approach where this appears to be appropriate or necessary. Change-Id: I20e2b9b0efd4785f8f0b1ddbc8496be111628669 Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* 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>
* Squish: Use parameters for mouseClickChristian Stenger2019-08-091-1/+1
| | | | | | | Another partial revert for e8727fcae25d96. Change-Id: Ieba9b7ea75421858698e0da0133278408e2b5ee1 Reviewed-by: Robert Loehning <robert.loehning@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>
* Squish: Use parameters in another call to mouseClick(...)Robert Loehning2019-07-311-1/+1
| | | | | | | Reverts e8727fcae25d96da9e55bb5a98dde813e4e5dfa0 for this line. Change-Id: I98e789ef3e09b3d33e53ced23177795e1e226a1e 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>
* Squish: Update clang detection in tst_default_settingsRobert Loehning2019-07-301-0/+1
| | | | | Change-Id: Ia1e0332253a309eae9579fff5cae2659a6089c50 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Use parameters in another call to mouseClick(...)Robert Loehning2019-07-301-1/+1
| | | | | | | Reverts e8727fcae25d96da9e55bb5a98dde813e4e5dfa0 for this line. Change-Id: I6ac752985fb9bcb66a38d7f97d8cc8dc33da4189 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>
* Squish: Stabilize tst_qml_js_consoleRobert Loehning2019-07-301-1/+4
| | | | | Change-Id: Id5c72fffddcbf88ece36b4109621e10e2a030532 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Update tst_openqt_creatorRobert Loehning2019-07-291-5/+3
| | | | | Change-Id: I2fed662652f7f8f5cbe4b281bdde5791ea57e2d7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Update expected treesRobert Loehning2019-07-292-20/+8
| | | | | Change-Id: I4962634155ba37780781bbd2b0f25f1d2be2a7ec Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Stabilize tst_rename_fileRobert Loehning2019-07-261-1/+3
| | | | | | | | Sometimes, progress bars "Scanning for Tests" show up, making it unreliable to wait for progress bars only. Change-Id: I4167d14a6d6cf4bb6ff14223f0be498c92913bd6 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Use parameters in some calls to mouseClick(...)Robert Loehning2019-07-262-2/+4
| | | | | | | Partially reverts e8727fcae25d96da9e55bb5a98dde813e4e5dfa0 for these lines. Change-Id: I268b1ff337095bd08d3e92c8be57bc2b6e5de8d9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Fix handling of server issues in tst_codepastingRobert Loehning2019-07-261-1/+1
| | | | | | | ...properly this time, I hope. Change-Id: I4cf492f28c99fa15425c44f41656e6220f7a8715 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* CMake build: Add "Devel" packageCristian Adam2019-07-2522-34/+36
| | | | | | | | | 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>
* Squish: Clean up single (left) mouse clicks on items or objectsChristian Stenger2019-07-2524-61/+47
| | | | | | | | | Do no more use pixels as offset if we can handle this without. Clicking on items by using an (x, y) offset will likely fail if running on a machine with a different DPI setting. Change-Id: I0e5a4985104bd1d68aadf8c5534583fa1b048edb Reviewed-by: Robert Loehning <robert.loehning@qt.io>
* Squish: Update lib creationRobert Loehning2019-07-241-38/+22
| | | | | | | Fixes tst_APTW03 Change-Id: Ifa1bcf5334773b68b8b0027ca03a016d5ba92cb4 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Update tst_create_proj_wizardRobert Loehning2019-07-231-2/+7
| | | | | Change-Id: I59b4829abd0d98cbf346e68e3d634da87b3a635e Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Update tst_installed_languagesRobert Loehning2019-07-231-1/+1
| | | | | Change-Id: I5b9fb407f75792a771877bfc14e95ac897f58b31 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Debugger: Fix CharArrays dumper testDavid Schulz2019-07-181-4/+4
| | | | | Change-Id: I041700a2a6ddac7f3a07b0e0d5dd876a9d542f5b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* UnitTests: Fix compile without ClangMarco Bubke2019-07-166-67/+77
| | | | | | | | I moved the clang depend code under the condition that it is only compiled if LLVM is present. Change-Id: If1e37f677464ff38833c81dbebdfe8eaa563cdde 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>
* Squish: Update BuildDirectoryLineEditRobert Loehning2019-07-151-1/+1
| | | | | | | Fixes error in tst_simple_debug on Windows. Change-Id: Ibb122619539d386010c5015e2f8748aeb936baef Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* ClangPchManager: Fix path for excluded include filesMarco Bubke2019-07-112-77/+129
| | | | | | | Still used the old approach but now it is using the new one. Change-Id: I4bf4da3a5d41d46afff261f3d77bd9190737038a Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* ClangPchManager: Protect fetchPchSourcesMarco Bubke2019-07-111-0/+26
| | | | | | | It was not protected by a transaction so it was not thread save. Change-Id: Ib4529d0e94942d3cbafb46705a0256812908c8c6 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* ClangRefactoring: Make the indexer more robustMarco Bubke2019-07-111-21/+22
| | | | | | | | We check now if the database is busy. This should not be happen but better be careful. Change-Id: I8b667ff183368977991974ea1fe7fcde837e968a Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Clang: Fix adding snippets after opening braceNikolai Kosjar2019-07-101-0/+21
| | | | | | | | | | | | | The regression was introduced by commit 82d6d20acb04ec970ee609e46e4f7d9543b416f4 Clang: Do not show completions after comma in initializer list This fixes ClangCodeCompletionTest::testCompleteGlobals(). Change-Id: Ic126f1e3eaed158196268e3682ff32bc02deb7b9 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Unittest: Fix compile due to ambiguity for older gccChristian Stenger2019-07-101-2/+2
| | | | | Change-Id: I4eb2ce1cd0892a50702eacb1b0d6bdf844718c20 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Squish: Update tst_CSUP02Robert Loehning2019-07-091-0/+3
| | | | | Change-Id: I56fd0375b973141fae4e53352997d0752bfbfcb0 Reviewed-by: Christian Stenger <christian.stenger@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>
* CMake: Fix buildOrgad Shaneh2019-07-081-1/+0
| | | | | | | This amends commit 376aae271132b39664d381f00bdcd45856acbd73 Change-Id: I63e94c7e720f4f18fcf0f47b6e7af7e471c84df5 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Clang: Remove unused memberNikolai Kosjar2019-07-051-1/+0
| | | | | Change-Id: Ib9af2f32bc69c34570d5276f03b660111ec3fe1b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Unify disabling build of llvm related plugins or test on WindowsChristian Stenger2019-07-051-0/+2
| | | | | | | | | If libclang's build mode mismatches the current build mode of Qt Creator some plugins are automatically disabled. Do the same for the unittest and unify the way to do this. Change-Id: Ib4cd6494ed63cb89ed8d99b3c0ba23a19572fc9b Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* Clang: Remove old codeMarco Bubke2019-07-0410-409/+2
| | | | | | | | We maybe bring back the clang query interface but the local rename is better served by other plugins. Change-Id: I97bedcb20870632b7dd50977794a65b2b09ededb Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* ClangPchManager: Don't update system PCH if no system include file changedMarco Bubke2019-07-043-13/+65
| | | | | | | | If a project or user file is touched the system PCH should not be regenerated. Change-Id: Id5989735bab4441fc1eebfb5d31e01ba9714428b Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Clang: Differentiate between user and non user includes for updatingMarco Bubke2019-07-0417-888/+550
| | | | | | | | We don't want to recreate a PCH if the include or source is not contained by a PCH. Change-Id: If52fc1aed92054b4165cdc634656147fbe8baa47 Reviewed-by: Tim Jenssen <tim.jenssen@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>
* Squish: Update Designer testsRobert Loehning2019-07-022-3/+3
| | | | | Change-Id: I64a63a69bb6e62c29af73918d98e9a924a221f80 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>
* CMake build: Fix building with CMakeCristian Adam2019-07-011-1/+2
| | | | | Change-Id: Ib1ba9d286a029d20106d105b3db7fb34596badbd Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Squish: Remove outdated codeRobert Loehning2019-06-272-9/+2
| | | | | Change-Id: Ic4c3cf43aed15756aaeaa4a5e7ed5240bed2545c Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Squish: Update tst_git_localRobert Loehning2019-06-271-3/+3
| | | | | Change-Id: If3b3eb69a7927d0ecbc5d10afee6ab3fdfbd448b Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Clang: Add reset to ModifiedTimeCheckerMarco Bubke2019-06-271-27/+100
| | | | | | | | We can reset some file once to flag a file dirty if the included file has changed. Change-Id: I8763bb80f65882fba4e70057f569234e77097927 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>