aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp/proced-tests.el (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ; Add 2026 to copyright years.Sean Whitton2026-01-011-1/+1
|
* ; Temporarily disable proced tests on macOS (Bug#76898)Stefan Kangas2025-03-111-0/+4
| | | | | * test/lisp/proced-tests.el (proced-format-test, proced-update-test) (proced-revert-test, proced-color-test): Disable tests on macOS.
* Better NaN handling in proced-tests.elMichael Albinus2025-02-031-4/+5
| | | | | | * test/lisp/proced-tests.el (proced--cpu-at-point): Make it more robust. (proced--assert-process-valid-cpu-refinement): Handle `ert-test-skipped' signal.
* Update copyright year to 2025Stefan Kangas2025-01-021-1/+1
| | | | Run "TZ=UTC0 admin/update-copyright".
* Skip proced refine tests on DarwinLaurence Warne2024-11-221-0/+3
| | | | | * test/lisp/proced-tests.el (proced-refine-test) (proced-refine-with-update-test): Skip if the system is Darwin.
* Don't error in Proced tests if %CPU is a NaNLaurence Warne2024-11-151-6/+18
| | | | | | | | | | | | * test/lisp/proced-tests.el (proced--cpu-at-point): New function. (proced--assert-process-valid-cpu-refinement) (proced-refine-test, proced-refine-with-update-test): If %CPU for any process visited is a NaN skip the test. (proced-update-preserves-pid-at-point-test): Fix typo in comment. (proced--assert-process-valid-cpu-refinement-explainer): Add process attributes to the explainer along with tweaking how the process %CPU is obtained to account for circumstances where it's not numeric (most notably '-nan').
* ; Instrument proced-tests.el furtherMichael Albinus2024-11-041-1/+5
| | | | | * test/lisp/proced-tests.el (proced--assert-process-valid-cpu-refinement): Explain also Lisp errors.
* Work on proced-tests.elLaurence Warne2024-10-301-3/+20
| | | | | | * test/lisp/proced-tests.el (proced--assert-process-valid-cpu-refinement-explainer): New function for explaining refinement test failures in greater detail.
* Fix flakey proced refine tests (Bug#73441)Laurence Warne2024-10-271-23/+20
| | | | | | | | | | | * test/lisp/proced-tests.el (proced-refine-test) (proced-refine-with-update-test): Use the much simpler CPU refinement for testing 'proced-refine'. The previous tests made the incorrect assumption that refining on the PID of process A only filtered the buffer to contain process A and its children, whereas in actuality the children of process A's children, their children, and so on will also be shown. (proced-update-preserves-pid-at-point-test): Mark as unstable.
* ; Remove proced-tests.el instrumentation (Do not merge with master)Michael Albinus2024-10-261-3/+1
|
* ; * test/lisp/proced-tests.el (proced--within-buffer): Instrument macro.Michael Albinus2024-10-231-1/+3
| | | | Do not merge with master
* ; Add 2024 to copyright yearsPo Lu2024-01-021-1/+1
|
* ; Fix typosStefan Kangas2023-12-101-1/+1
|
* ; Fix copyright year in proced-tests.elStefan Kangas2023-08-291-1/+2
|
* Fix unstable Proced refine testsLaurence Warne2023-07-261-8/+17
| | | | | | | | | * test/lisp/proced-tests.el (proced-refine-test) (proced-refine-with-update-test): Also check if the parent process id of each process matches the process id refined on before failing, since the refiner for process id returns the children of a process in addition to the process itself. (Bug#64800)
* Fix unstable proced testLaurence Warne2023-05-281-2/+5
| | | | | | | | | | | | Fix unstable proced test by omitting the revert parameter in 'proced-update'. This was caused by the process being refined on exiting between the initial 'proced' call and the successive 'proced-update' call. This resulted in proced skipping the refinement in 'proced-update', causing all processes to be shown again and the test to fail. * test/lisp/proced-tests.el (proced-refine-with-update-test): Do not use revert parameter when calling 'proced-update'.
* Mark proced-refine-with-update-test :unstable (bug#63550)Mattias EngdegÄrd2023-05-171-0/+1
| | | | | | * test/lisp/proced-tests.el (proced-refine-with-update-test): This test seems racy and often fails randomly in parallel `make check`.
* Preserve the window position with proced (bug#60381)Laurence Warne2023-01-141-0/+17
| | | | | | | | | | | | | | | | | | | | | | Preserve the window position for windows which display a proced buffer, but are not the selected window when a proced buffer is updated. Previously, the window position would be set to the start of the buffer when a proced buffer was updated and it was not displayed in the selected window. Similarly, preserve the position in proced buffers which are not displayed in any window by setting 'switch-to-buffer-preserve-window-point' to nil in proced buffers. * lisp/proced.el (proced-auto-update-timer): Only update a given proced buffer if it is displayed in a window. (proced-update): Set the window position if the proced buffer is displayed in a window. (proced--position-info, proced--determine-pos): New Functions. (proced-mode): Set 'switch-to-buffer-preserve-window-point' to nil in proced buffers. * test/lisp/proced-tests.el (proced-update-preserves-pid-at-point-test): New test.
* Make proced-tests work on more systemsEli Zaretskii2022-12-141-16/+12
| | | | | | | | * test/lisp/proced-tests.el (proced-format-test) (proced-update-test, proced-revert-test, proced-color-test): Remove the 'skip-unless' condition, as it is unnecessary. (proced-refine-test, proced-refine-with-update-test): Use PID, not Args, as the column to test, as PID is more portable.
* Add tests for procedLaurence Warne2022-12-141-0/+109
* test/lisp/proced-tests.el: New file.