diff options
| author | Stefan Monnier | 2025-02-05 20:21:03 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2025-02-05 20:21:03 -0500 |
| commit | 1f4a26df862917c956e79fc2ca111caebf895623 (patch) | |
| tree | 1992020c1b0a7c68fd3d9f0f0cab343b1cc67c09 /test | |
| parent | d10acd16c90afe9fc8534fcd174397b7c403eda9 (diff) | |
| parent | 5c36b4126533764bb8b90413f274d766e1a6f0d6 (diff) | |
| download | emacs-1f4a26df862917c956e79fc2ca111caebf895623.tar.gz emacs-1f4a26df862917c956e79fc2ca111caebf895623.zip | |
Merge remote-tracking branch 'origin/emacs-30'
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/proced-tests.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/lisp/proced-tests.el b/test/lisp/proced-tests.el index e24163c3884..ecf23c5d037 100644 --- a/test/lisp/proced-tests.el +++ b/test/lisp/proced-tests.el | |||
| @@ -38,10 +38,10 @@ | |||
| 38 | (defun proced--cpu-at-point () | 38 | (defun proced--cpu-at-point () |
| 39 | "Return as an integer the current CPU value at point." | 39 | "Return as an integer the current CPU value at point." |
| 40 | (if (string-suffix-p "nan" (thing-at-point 'sexp)) | 40 | (if (string-suffix-p "nan" (thing-at-point 'sexp)) |
| 41 | (let ((pid (proced-pid-at-point))) | 41 | (ert-skip |
| 42 | (ert-skip | 42 | (format |
| 43 | (format | 43 | "Found NaN value for %%CPU at point for process with PID %s" |
| 44 | "Found NaN value for %%CPU at point for process with PID %d" pid))) | 44 | (substring-no-properties (thing-at-point 'sexp)))) |
| 45 | (thing-at-point 'number))) | 45 | (thing-at-point 'number))) |
| 46 | 46 | ||
| 47 | (defun proced--assert-emacs-pid-in-buffer () | 47 | (defun proced--assert-emacs-pid-in-buffer () |
| @@ -61,6 +61,7 @@ | |||
| 61 | (proced--move-to-column "%CPU") | 61 | (proced--move-to-column "%CPU") |
| 62 | (condition-case err | 62 | (condition-case err |
| 63 | (>= (proced--cpu-at-point) cpu) | 63 | (>= (proced--cpu-at-point) cpu) |
| 64 | (ert-test-skipped (signal (car err) (cdr err))) | ||
| 64 | (error | 65 | (error |
| 65 | (ert-fail | 66 | (ert-fail |
| 66 | (list err (proced--assert-process-valid-cpu-refinement-explainer cpu)))))) | 67 | (list err (proced--assert-process-valid-cpu-refinement-explainer cpu)))))) |