summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLib
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'cmuvprocesschain'Brad King2024-01-252-4/+5
|\ | | | | | | | | | | | | | | | | | | adb3e13d32 cmUVProcessChain: Tolerate fileno() of invalid FILE stream b6e4e4babc cmUVProcessChain: Simplify SetExternalStream usage 116bb2b70f cmUVProcessChain: Simplify builder initialization d32c30906a Tests: Add missing include in testUVProcessChainHelper on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9181
| * cmUVProcessChain: Simplify SetExternalStream usageBrad King2024-01-241-4/+1
| | | | | | | | | | It is commonly called with the `fileno()` of a `FILE*` stream, so accept the latter directly.
| * Tests: Add missing include in testUVProcessChainHelper on WindowsBrad King2024-01-241-0/+4
| | | | | | | | We use `STATUS_ACCESS_VIOLATION` from `windows.h`.
* | cmUVProcessChain: Add option for external uv_loop_tKyle Edwards2023-12-051-1/+52
| |
* | cmUVJobServerClient: Add libuv-based job server integration clientBrad King2023-12-032-0/+180
| |
* | cmUVHandlePtr: Fix conversion to bool on Oracle Studio compilerBrad King2023-12-021-0/+16
| | | | | | | | | | | | | | | | The operator added by commit 17690558c3 (cmUVHandlePtr: Add explicit conversion to bool, 2023-10-26) works in direct expressions like `if(foo)` but not compound expressions like `if(foo && ...)`. Drop the `explicit` mark when compiling with Oracle Studio so we can at least compile valid code.
* | cmUVHandlePtr: Add uv_write wrapper to manage request lifetimeBrad King2023-11-221-0/+51
| | | | | | | | Provide a way to synchronously cancel a write request callback.
* | cmUVHandlePtr: Add uv_idle_ptr::{start,stop} methodsBrad King2023-11-201-1/+12
| | | | | | | | These were missing w.r.t. the pattern established for other handle wrappers.
* | cmUVHandlePtr: Add uv_timer_ptr::stop methodBrad King2023-11-201-0/+10
| | | | | | | | This was missing w.r.t. the pattern established for other handle wrappers.
* | Tests: Add dedicated test case for uv_timer_ptrBrad King2023-11-201-0/+27
| |
* | Tests: Factor out callback in uv_idle_ptr test caseBrad King2023-11-201-4/+6
| |
* | Tests: Add dedicated test to cover cmUVHandlePtr typesBrad King2023-11-203-25/+37
| | | | | | | | | | Move the case added by commit 70d88a5361 (cmUVHandlePtr: Add uv_idle_ptr, 2023-11-06) to a dedicated test.
* | cmUVHandlePtr: Add uv_idle_ptrBrad King2023-11-171-0/+26
| | | | | | | | Wrap a `uv_idle_t` handle.
* | cmUVHandlePtr: Add explicit conversion to boolBrad King2023-11-171-3/+3
| |
* | Merge topic 'cxx23'Brad King2023-11-082-3/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | a0fabc4769 cmGlobalGeneratorFactory: Provide complete cmGlobalGenerator to deleter 85627a93c9 cmCTestBuildCommand: Avoid requiring complete cmGlobalGenerator type publicly 641c02a3ce cmList: Avoid using operator-> on input iterator e4483b8871 Tests: Avoid compiling call to dap::optional<dap::string>(nullptr) Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !8950
| * Tests: Avoid compiling call to dap::optional<dap::string>(nullptr)Brad King2023-11-072-3/+3
| |
* | Merge topic 'debugger-function-name-in-stacktrace'Brad King2023-10-272-0/+34
|\ \ | | | | | | | | | | | | | | | | | | | | | c028425df9 Debugger: report function name in DAP stackframes Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8913
| * | Debugger: report function name in DAP stackframesDmitry.Neverov2023-10-262-0/+34
| |/ | | | | | | | | | | | | Before a file name and a line were returned, but they can be obtained by other means. Fixes: #25091
* | Tests: Fix clang -Wstrict-prototypes warningsBrad King2023-10-261-1/+1
|/
* cmDebugTools: add headerBen Boeckel2023-10-012-0/+34
| | | | | | | | | | | | | | This provides a utility macro which prints out: - location of the call; - the expression being evaluated; and - the value of the expression. Evaluates to the value of the expression. Inspired by Rust's `dbg!` macro. See: https://doc.rust-lang.org/stable/std/macro.dbg.html
* cmCTestScriptHandler: Replace cmsysProcess with cmUVProcessChainKyle Edwards2023-08-291-4/+0
| | | | And update cmSystemTools::WaitForLine() to use cmUVProcessChain.
* cmUVStreamRead: Return RAII handle to avoid memory leakKyle Edwards2023-08-251-2/+56
|
* CMakeLibTests: Compile with WIN32_LEAN_AND_MEANKyle Edwards2023-08-211-0/+6
|
* Merge topic 'debugger-pipe-connections'Brad King2023-08-192-4/+11
|\ | | | | | | | | | | | | | | 8b1257e7bf Debugger: Replace libuv with platform-specific connection code Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8711
| * Debugger: Replace libuv with platform-specific connection codePaul Maybee2023-08-172-4/+11
| | | | | | | | | | | | | | Remove libuv usage from CMake debugger. Libuv has an async io model and cppdap uses a sync model, so an extra thread and a buffer copy were necessary to match semantics. In order to eliminate those costs this commit implements the IO using platform specific APIs.
* | Merge topic 'test-debugger-named-pipe-fix'Brad King2023-08-161-7/+7
|\ \ | | | | | | | | | | | | | | | | | | | | | 1a5cb0c1c1 testDebuggerNamedPipe: fix for cppdap with nlohmann_json Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8725
| * | testDebuggerNamedPipe: fix for cppdap with nlohmann_jsonĐoàn Trần Công Danh2023-08-161-7/+7
| | | | | | | | | | | | | | | Fixes: #25190 Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
| * | cmList: Fix performance regression in append/prependMarc Chevrier2023-08-041-4/+4
| | | | | | | | | | | | Fixes: #25147
* | | Merge topic 'add-cm-fileno'Brad King2023-08-091-1/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | fbdb1fd843 Source: Add cm_fileno wrapper Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8686
| * | | Source: Add cm_fileno wrapperKyle Edwards2023-08-071-1/+4
| | | | | | | | | | | | | | | | And use it where appropriate.
* | | | cmList: Fix performance regression in append/prependMarc Chevrier2023-08-041-4/+4
|/ / / | | | | | | | | | Fixes: #25147
* | | Merge topic 'test_utf8_improve'Brad King2023-08-011-58/+49
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3ce4e9523c testUTF8: Improve using string_view Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8673
| * | | testUTF8: Improve using string_viewVitaly Stakhovsky2023-07-301-58/+49
| | | |
* | | | IWYU: Update for Debian 12 CI jobBrad King2023-07-287-7/+1
|/ / / | | | | | | | | | | | | | | | `include-what-you-use` diagnostics, in practice, are specific to the environment's compiler and standard library. Update includes to satisfy IWYU for our CI job under Debian 12.
* | | cmUVProcessChain::Wait(): Treat timeout of 0 as no timeoutKyle Edwards2023-07-261-0/+19
| |/ |/|
* | cmCMakePath: workarounds for Sunpro/sparc compilerMarc Chevrier2023-07-182-0/+442
| |
* | Merge topic 'debugger-breakpoints'Brad King2023-07-141-0/+13
|\ \ | |/ | | | | | | | | | | | | 60b6383993 Debugger: Always clear existing breakpoints on setBreakpoints Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8624
| * Debugger: Always clear existing breakpoints on setBreakpointsBen McMorran2023-07-131-0/+13
| | | | | | | | Fixes: #25063
* | Merge topic 'debugger-no-supportsVariableType'Brad King2023-07-133-4/+38
|\ \ | |/ | | | | | | | | | | | | | | e02cf3f190 Debugger: Correctly handle clients without supportsVariableType Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Garrett Campbell <gcampbell@microsoft.com> Merge-request: !8620
| * Debugger: Correctly handle clients without supportsVariableTypeBen McMorran2023-07-123-4/+38
| | | | | | | | Fixes: #25057
* | Tests: Improve order of CMakeLibTests link librariesBrad King2023-07-071-1/+1
| | | | | | | | Avoid repeating `libCMakeLib.a` multiple times on the link line.
* | Merge topic 'debugger-segfault'Brad King2023-06-301-1/+29
|\ \ | |/ | | | | | | | | | | | | 764258771a Debugger: Fix threads request segfault after thread exited event Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8604
| * Debugger: Fix threads request segfault after thread exited eventBen McMorran2023-06-291-1/+29
| | | | | | | | Fixes: #25041
* | CMakeLibTests: Precompile common expensive headersClemens Wasser2023-06-221-0/+4
| |
* | cmUVStream: Add cmUVStreamRead() functionKyle Edwards2023-06-141-0/+57
| |
* | cmUVProcessChain: Return output and error streams as file descriptorsKyle Edwards2023-06-141-21/+30
| |
* | cmUVPipeIStream: Add cmUVPipeIStreamKyle Edwards2023-06-141-0/+40
| |
* | cmUVProcessChain: Add support for SetExternalStream(Stream_INPUT)Kyle Edwards2023-06-122-0/+34
| |
* | cmUVProcessChain: Add Status::SpawnResult fieldKyle Edwards2023-06-082-64/+203
|/
* cmUVProcessChain: Add Status::GetException() methodKyle Edwards2023-06-052-14/+65
|