diff options
| author | Michael Albinus | 2019-01-16 13:56:38 +0100 |
|---|---|---|
| committer | Michael Albinus | 2019-01-16 13:56:38 +0100 |
| commit | b2497ef6952134022ad799247bc5a31f7559ef87 (patch) | |
| tree | 26deb5515152f01559c3eb971d4d28d61bac6174 /test | |
| parent | 02976d67369699660add46d548f0d1593885334b (diff) | |
| download | emacs-b2497ef6952134022ad799247bc5a31f7559ef87.tar.gz emacs-b2497ef6952134022ad799247bc5a31f7559ef87.zip | |
Some accept-process-output cleanups in Tramp
* lisp/net/tramp.el (tramp-action-out-of-band): Read process
output in a loop.
(tramp-accept-process-output): Return result.
(tramp-interrupt-process):
* lisp/net/tramp-adb.el (tramp-adb-parse-device-names):
* lisp/net/tramp-rclone.el (tramp-rclone-parse-device-names):
Remove FIXME.
* lisp/net/tramp-sh.el (tramp-local-coding-commands): Fix docstring.
* lisp/net/tramp-smb.el (tramp-smb-wait-for-output): Adapt docstring.
Simplify code.
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-action-sudo):
Adapt docstring. Read process output in a loop.
* test/lisp/net/tramp-tests.el (tramp-test43-asynchronous-requests):
Remove :unstable tag on emba.
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index ff63dc18fbc..28935062864 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -405,7 +405,7 @@ handled properly. BODY shall not contain a timeout." | |||
| 405 | tramp-default-user-alist | 405 | tramp-default-user-alist |
| 406 | tramp-default-host-alist | 406 | tramp-default-host-alist |
| 407 | ;; Suppress check for multihops. | 407 | ;; Suppress check for multihops. |
| 408 | (tramp-cache-data (make-hash-table :test 'equal)) | 408 | (tramp-cache-data (make-hash-table :test 'equal)) |
| 409 | (tramp-connection-properties '((nil "login-program" t)))) | 409 | (tramp-connection-properties '((nil "login-program" t)))) |
| 410 | ;; Expand `tramp-default-user' and `tramp-default-host'. | 410 | ;; Expand `tramp-default-user' and `tramp-default-host'. |
| 411 | (should (string-equal | 411 | (should (string-equal |
| @@ -844,7 +844,7 @@ handled properly. BODY shall not contain a timeout." | |||
| 844 | tramp-default-user-alist | 844 | tramp-default-user-alist |
| 845 | tramp-default-host-alist | 845 | tramp-default-host-alist |
| 846 | ;; Suppress check for multihops. | 846 | ;; Suppress check for multihops. |
| 847 | (tramp-cache-data (make-hash-table :test 'equal)) | 847 | (tramp-cache-data (make-hash-table :test 'equal)) |
| 848 | (tramp-connection-properties '((nil "login-program" t))) | 848 | (tramp-connection-properties '((nil "login-program" t))) |
| 849 | (syntax tramp-syntax)) | 849 | (syntax tramp-syntax)) |
| 850 | (unwind-protect | 850 | (unwind-protect |
| @@ -1168,7 +1168,7 @@ handled properly. BODY shall not contain a timeout." | |||
| 1168 | tramp-default-user-alist | 1168 | tramp-default-user-alist |
| 1169 | tramp-default-host-alist | 1169 | tramp-default-host-alist |
| 1170 | ;; Suppress check for multihops. | 1170 | ;; Suppress check for multihops. |
| 1171 | (tramp-cache-data (make-hash-table :test 'equal)) | 1171 | (tramp-cache-data (make-hash-table :test 'equal)) |
| 1172 | (tramp-connection-properties '((nil "login-program" t))) | 1172 | (tramp-connection-properties '((nil "login-program" t))) |
| 1173 | (syntax tramp-syntax)) | 1173 | (syntax tramp-syntax)) |
| 1174 | (unwind-protect | 1174 | (unwind-protect |
| @@ -5212,7 +5212,13 @@ Use the `ls' command." | |||
| 5212 | "Check parallel asynchronous requests. | 5212 | "Check parallel asynchronous requests. |
| 5213 | Such requests could arrive from timers, process filters and | 5213 | Such requests could arrive from timers, process filters and |
| 5214 | process sentinels. They shall not disturb each other." | 5214 | process sentinels. They shall not disturb each other." |
| 5215 | :tags '(:expensive-test :unstable) | 5215 | ;; The test fails from time to time, w/o a reproducible pattern. So |
| 5216 | ;; we mark it as unstable. | ||
| 5217 | ;; Recent investigations have uncovered a race condition in | ||
| 5218 | ;; `accept-process-output'. Let's check on emba, whether this has | ||
| 5219 | ;; been solved. | ||
| 5220 | :tags | ||
| 5221 | (if (getenv "EMACS_EMBA_CI") '(:expensive-test) '(:expensive-test :unstable)) | ||
| 5216 | (skip-unless (tramp--test-enabled)) | 5222 | (skip-unless (tramp--test-enabled)) |
| 5217 | (skip-unless (tramp--test-sh-p)) | 5223 | (skip-unless (tramp--test-sh-p)) |
| 5218 | 5224 | ||