diff options
| author | Lars Ingebrigtsen | 2019-10-05 17:01:33 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-10-05 17:01:33 +0200 |
| commit | 4f2de56830ea25d812b05c954abd0600a012f9ef (patch) | |
| tree | 5f450cf058edc0d543759a6ce18dc9ea629f8e6a /test/manual | |
| parent | 9f6a59849f69efd1d8026b040b9e9a397df03499 (diff) | |
| download | emacs-4f2de56830ea25d812b05c954abd0600a012f9ef.tar.gz emacs-4f2de56830ea25d812b05c954abd0600a012f9ef.zip | |
Remove some XEmacs compat code from the CEDET tests
Diffstat (limited to 'test/manual')
| -rw-r--r-- | test/manual/cedet/cedet-utests.el | 25 | ||||
| -rw-r--r-- | test/manual/cedet/srecode-tests.el | 4 |
2 files changed, 13 insertions, 16 deletions
diff --git a/test/manual/cedet/cedet-utests.el b/test/manual/cedet/cedet-utests.el index 67a828bb295..b8f08886fe7 100644 --- a/test/manual/cedet/cedet-utests.el +++ b/test/manual/cedet/cedet-utests.el | |||
| @@ -57,7 +57,7 @@ | |||
| 57 | (require 'eieio-custom) | 57 | (require 'eieio-custom) |
| 58 | (customize-variable 'eieio-widget-test))) | 58 | (customize-variable 'eieio-widget-test))) |
| 59 | ("eieio: chart" . (lambda () | 59 | ("eieio: chart" . (lambda () |
| 60 | (if (cedet-utest-noninteractive) | 60 | (if noninteractive |
| 61 | (message " ** Skipping test in noninteractive mode.") | 61 | (message " ** Skipping test in noninteractive mode.") |
| 62 | (chart-test-it-all)))) | 62 | (chart-test-it-all)))) |
| 63 | ;; | 63 | ;; |
| @@ -77,7 +77,7 @@ | |||
| 77 | ("semanticdb: data cache" . semantic-test-data-cache) | 77 | ("semanticdb: data cache" . semantic-test-data-cache) |
| 78 | ("semantic: throw-on-input" . | 78 | ("semantic: throw-on-input" . |
| 79 | (lambda () | 79 | (lambda () |
| 80 | (if (cedet-utest-noninteractive) | 80 | (if noninteractive |
| 81 | (message " ** Skipping test in noninteractive mode.") | 81 | (message " ** Skipping test in noninteractive mode.") |
| 82 | (semantic-test-throw-on-input)))) | 82 | (semantic-test-throw-on-input)))) |
| 83 | 83 | ||
| @@ -145,14 +145,13 @@ of just logging the error." | |||
| 145 | 145 | ||
| 146 | (defun cedet-utest-noninteractive () | 146 | (defun cedet-utest-noninteractive () |
| 147 | "Return non-nil if running non-interactively." | 147 | "Return non-nil if running non-interactively." |
| 148 | (if (featurep 'xemacs) | 148 | (declare (obsolete nil "27.1")) |
| 149 | (noninteractive) | 149 | noninteractive) |
| 150 | noninteractive)) | ||
| 151 | 150 | ||
| 152 | ;;;###autoload | 151 | ;;;###autoload |
| 153 | (defun cedet-utest-batch () | 152 | (defun cedet-utest-batch () |
| 154 | "Run the CEDET unit test in BATCH mode." | 153 | "Run the CEDET unit test in BATCH mode." |
| 155 | (unless (cedet-utest-noninteractive) | 154 | (unless noninteractive |
| 156 | (error "`cedet-utest-batch' is to be used only with -batch")) | 155 | (error "`cedet-utest-batch' is to be used only with -batch")) |
| 157 | (condition-case err | 156 | (condition-case err |
| 158 | (when (catch 'cedet-utest-exit-on-error | 157 | (when (catch 'cedet-utest-exit-on-error |
| @@ -200,7 +199,7 @@ of just logging the error." | |||
| 200 | "Setup a frame and buffer for unit testing. | 199 | "Setup a frame and buffer for unit testing. |
| 201 | Optional argument TITLE is the title of this testing session." | 200 | Optional argument TITLE is the title of this testing session." |
| 202 | (setq cedet-utest-log-timer (current-time)) | 201 | (setq cedet-utest-log-timer (current-time)) |
| 203 | (if (cedet-utest-noninteractive) | 202 | (if noninteractive |
| 204 | (message "\n>> Setting up %s tests to run @ %s\n" | 203 | (message "\n>> Setting up %s tests to run @ %s\n" |
| 205 | (or title "") | 204 | (or title "") |
| 206 | (current-time-string)) | 205 | (current-time-string)) |
| @@ -245,7 +244,7 @@ ERRORCONDITION is some error that may have occurred during testing." | |||
| 245 | 244 | ||
| 246 | (defun cedet-utest-log-shutdown-msg (title startime endtime) | 245 | (defun cedet-utest-log-shutdown-msg (title startime endtime) |
| 247 | "Show a shutdown message with TITLE, STARTIME, and ENDTIME." | 246 | "Show a shutdown message with TITLE, STARTIME, and ENDTIME." |
| 248 | (if (cedet-utest-noninteractive) | 247 | (if noninteractive |
| 249 | (progn | 248 | (progn |
| 250 | (message "\n>> Test Suite %s ended at @ %s" | 249 | (message "\n>> Test Suite %s ended at @ %s" |
| 251 | title | 250 | title |
| @@ -266,7 +265,7 @@ ERRORCONDITION is some error that may have occurred during testing." | |||
| 266 | 265 | ||
| 267 | (defun cedet-utest-show-log-end () | 266 | (defun cedet-utest-show-log-end () |
| 268 | "Show the end of the current unit test log." | 267 | "Show the end of the current unit test log." |
| 269 | (unless (cedet-utest-noninteractive) | 268 | (unless noninteractive |
| 270 | (let* ((cb (current-buffer)) | 269 | (let* ((cb (current-buffer)) |
| 271 | (cf (selected-frame)) | 270 | (cf (selected-frame)) |
| 272 | (bw (or (get-buffer-window cedet-utest-buffer t) | 271 | (bw (or (get-buffer-window cedet-utest-buffer t) |
| @@ -282,7 +281,7 @@ ERRORCONDITION is some error that may have occurred during testing." | |||
| 282 | 281 | ||
| 283 | (defun cedet-utest-post-command-hook () | 282 | (defun cedet-utest-post-command-hook () |
| 284 | "Hook run after the current log command was run." | 283 | "Hook run after the current log command was run." |
| 285 | (if (cedet-utest-noninteractive) | 284 | (if noninteractive |
| 286 | (message "") | 285 | (message "") |
| 287 | (save-excursion | 286 | (save-excursion |
| 288 | (set-buffer cedet-utest-buffer) | 287 | (set-buffer cedet-utest-buffer) |
| @@ -299,7 +298,7 @@ ERRORCONDITION is some error that may have occurred during testing." | |||
| 299 | ;; This next line makes sure we clear out status during logging. | 298 | ;; This next line makes sure we clear out status during logging. |
| 300 | (add-hook 'post-command-hook 'cedet-utest-post-command-hook) | 299 | (add-hook 'post-command-hook 'cedet-utest-post-command-hook) |
| 301 | 300 | ||
| 302 | (if (cedet-utest-noninteractive) | 301 | (if noninteractive |
| 303 | (message " - Running %s ..." item) | 302 | (message " - Running %s ..." item) |
| 304 | (save-excursion | 303 | (save-excursion |
| 305 | (set-buffer cedet-utest-buffer) | 304 | (set-buffer cedet-utest-buffer) |
| @@ -316,7 +315,7 @@ ERRORCONDITION is some error that may have occurred during testing." | |||
| 316 | Apply NOTES to the doneness of the log. | 315 | Apply NOTES to the doneness of the log. |
| 317 | Apply ERR if there was an error in previous item. | 316 | Apply ERR if there was an error in previous item. |
| 318 | Optional argument PRECR indicates to prefix the done msg w/ a newline." | 317 | Optional argument PRECR indicates to prefix the done msg w/ a newline." |
| 319 | (if (cedet-utest-noninteractive) | 318 | (if noninteractive |
| 320 | ;; Non-interactive-mode - show a message. | 319 | ;; Non-interactive-mode - show a message. |
| 321 | (if notes | 320 | (if notes |
| 322 | (message " * %s {%s}" (or err "done") notes) | 321 | (message " * %s {%s}" (or err "done") notes) |
| @@ -356,7 +355,7 @@ Optional argument PRECR indicates to prefix the done msg w/ a newline." | |||
| 356 | (defun cedet-utest-log(format &rest args) | 355 | (defun cedet-utest-log(format &rest args) |
| 357 | "Log the text string FORMAT. | 356 | "Log the text string FORMAT. |
| 358 | The rest of the ARGS are used to fill in FORMAT with `format'." | 357 | The rest of the ARGS are used to fill in FORMAT with `format'." |
| 359 | (if (cedet-utest-noninteractive) | 358 | (if noninteractive |
| 360 | (apply 'message format args) | 359 | (apply 'message format args) |
| 361 | (save-excursion | 360 | (save-excursion |
| 362 | (set-buffer cedet-utest-buffer) | 361 | (set-buffer cedet-utest-buffer) |
diff --git a/test/manual/cedet/srecode-tests.el b/test/manual/cedet/srecode-tests.el index 63d10973e51..94c5dbbd952 100644 --- a/test/manual/cedet/srecode-tests.el +++ b/test/manual/cedet/srecode-tests.el | |||
| @@ -39,9 +39,7 @@ It is filled with some text." | |||
| 39 | (defun srecode-field-utest () | 39 | (defun srecode-field-utest () |
| 40 | "Test the srecode field manager." | 40 | "Test the srecode field manager." |
| 41 | (interactive) | 41 | (interactive) |
| 42 | (if (featurep 'xemacs) | 42 | (srecode-field-utest-impl)) |
| 43 | (message "There is no XEmacs support for SRecode Fields.") | ||
| 44 | (srecode-field-utest-impl))) | ||
| 45 | 43 | ||
| 46 | (defun srecode-field-utest-impl () | 44 | (defun srecode-field-utest-impl () |
| 47 | "Implementation of the SRecode field utest." | 45 | "Implementation of the SRecode field utest." |