diff options
| author | Michael Albinus | 2020-02-14 14:50:55 +0100 |
|---|---|---|
| committer | Michael Albinus | 2020-02-14 14:50:55 +0100 |
| commit | bbe13596b147b81aebbf48b094f87e2e04f50b55 (patch) | |
| tree | e7c047e75a127d95c9e1b2d68798eb2d3c1f0660 /test | |
| parent | b80c4b43dd47bf44c45bdab3e6f8b4b66a461074 (diff) | |
| download | emacs-bbe13596b147b81aebbf48b094f87e2e04f50b55.tar.gz emacs-bbe13596b147b81aebbf48b094f87e2e04f50b55.zip | |
Fix Tramp tests for MS Windows
* test/lisp/net/tramp-tests.el (tramp-test29-start-file-process)
(tramp-test30-make-process): Improve for MS-Windows.
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index 3e192899d45..9409cc2a39f 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -4194,7 +4194,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 4194 | (setq proc (start-file-process "test1" (current-buffer) "cat")) | 4194 | (setq proc (start-file-process "test1" (current-buffer) "cat")) |
| 4195 | (should (processp proc)) | 4195 | (should (processp proc)) |
| 4196 | (should (equal (process-status proc) 'run)) | 4196 | (should (equal (process-status proc) 'run)) |
| 4197 | (process-send-string proc "foo") | 4197 | (process-send-string proc "foo\n") |
| 4198 | (process-send-eof proc) | 4198 | (process-send-eof proc) |
| 4199 | ;; Read output. | 4199 | ;; Read output. |
| 4200 | (with-timeout (10 (tramp--test-timeout-handler)) | 4200 | (with-timeout (10 (tramp--test-timeout-handler)) |
| @@ -4237,7 +4237,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 4237 | (set-process-filter | 4237 | (set-process-filter |
| 4238 | proc | 4238 | proc |
| 4239 | (lambda (p s) (with-current-buffer (process-buffer p) (insert s)))) | 4239 | (lambda (p s) (with-current-buffer (process-buffer p) (insert s)))) |
| 4240 | (process-send-string proc "foo") | 4240 | (process-send-string proc "foo\n") |
| 4241 | (process-send-eof proc) | 4241 | (process-send-eof proc) |
| 4242 | ;; Read output. | 4242 | ;; Read output. |
| 4243 | (with-timeout (10 (tramp--test-timeout-handler)) | 4243 | (with-timeout (10 (tramp--test-timeout-handler)) |
| @@ -4275,7 +4275,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 4275 | :file-handler t))) | 4275 | :file-handler t))) |
| 4276 | (should (processp proc)) | 4276 | (should (processp proc)) |
| 4277 | (should (equal (process-status proc) 'run)) | 4277 | (should (equal (process-status proc) 'run)) |
| 4278 | (process-send-string proc "foo") | 4278 | (process-send-string proc "foo\n") |
| 4279 | (process-send-eof proc) | 4279 | (process-send-eof proc) |
| 4280 | ;; Read output. | 4280 | ;; Read output. |
| 4281 | (with-timeout (10 (tramp--test-timeout-handler)) | 4281 | (with-timeout (10 (tramp--test-timeout-handler)) |
| @@ -4324,7 +4324,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 4324 | :file-handler t))) | 4324 | :file-handler t))) |
| 4325 | (should (processp proc)) | 4325 | (should (processp proc)) |
| 4326 | (should (equal (process-status proc) 'run)) | 4326 | (should (equal (process-status proc) 'run)) |
| 4327 | (process-send-string proc "foo") | 4327 | (process-send-string proc "foo\n") |
| 4328 | (process-send-eof proc) | 4328 | (process-send-eof proc) |
| 4329 | ;; Read output. | 4329 | ;; Read output. |
| 4330 | (with-timeout (10 (tramp--test-timeout-handler)) | 4330 | (with-timeout (10 (tramp--test-timeout-handler)) |
| @@ -4350,7 +4350,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 4350 | :file-handler t))) | 4350 | :file-handler t))) |
| 4351 | (should (processp proc)) | 4351 | (should (processp proc)) |
| 4352 | (should (equal (process-status proc) 'run)) | 4352 | (should (equal (process-status proc) 'run)) |
| 4353 | (process-send-string proc "foo") | 4353 | (process-send-string proc "foo\n") |
| 4354 | (process-send-eof proc) | 4354 | (process-send-eof proc) |
| 4355 | (delete-process proc) | 4355 | (delete-process proc) |
| 4356 | ;; Read output. | 4356 | ;; Read output. |
| @@ -4358,8 +4358,13 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 4358 | (while (accept-process-output proc 0 nil t))) | 4358 | (while (accept-process-output proc 0 nil t))) |
| 4359 | ;; We cannot use `string-equal', because tramp-adb.el | 4359 | ;; We cannot use `string-equal', because tramp-adb.el |
| 4360 | ;; echoes also the sent string. And a remote macOS sends | 4360 | ;; echoes also the sent string. And a remote macOS sends |
| 4361 | ;; a slightly modified string. | 4361 | ;; a slightly modified string. On MS-Windows, |
| 4362 | (should (string-match "killed.*\n\\'" (buffer-string)))) | 4362 | ;; `delete-process' sends an unknown signal. |
| 4363 | (should | ||
| 4364 | (string-match | ||
| 4365 | (if (eq system-type 'windows-nt) | ||
| 4366 | "unknown signal\n\\'" "killed.*\n\\'") | ||
| 4367 | (buffer-string)))) | ||
| 4363 | 4368 | ||
| 4364 | ;; Cleanup. | 4369 | ;; Cleanup. |
| 4365 | (ignore-errors (delete-process proc))) | 4370 | (ignore-errors (delete-process proc))) |
| @@ -6302,9 +6307,7 @@ If INTERACTIVE is non-nil, the tests are run interactively." | |||
| 6302 | ;; * Fix `tramp-test06-directory-file-name' for `ftp'. | 6307 | ;; * Fix `tramp-test06-directory-file-name' for `ftp'. |
| 6303 | ;; * Investigate, why `tramp-test11-copy-file' and `tramp-test12-rename-file' | 6308 | ;; * Investigate, why `tramp-test11-copy-file' and `tramp-test12-rename-file' |
| 6304 | ;; do not work properly for `nextcloud'. | 6309 | ;; do not work properly for `nextcloud'. |
| 6305 | ;; * Fix `tramp-test29-start-file-process' and | 6310 | ;; * Implement `tramp-test31-interrupt-process' for `adb'. |
| 6306 | ;; `tramp-test30-make-process' on MS Windows (`process-send-eof'?). | ||
| 6307 | ;; * Implement `tramp-test31-interrupt-process' for `adb'. Fix `:unstable'. | ||
| 6308 | ;; * Fix Bug#16928 in `tramp-test43-asynchronous-requests'. A remote | 6311 | ;; * Fix Bug#16928 in `tramp-test43-asynchronous-requests'. A remote |
| 6309 | ;; file name operation cannot run in the timer. Remove `:unstable' tag? | 6312 | ;; file name operation cannot run in the timer. Remove `:unstable' tag? |
| 6310 | 6313 | ||