aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMichael Albinus2017-11-17 08:53:05 +0100
committerMichael Albinus2017-11-17 13:14:58 +0100
commitd8e0951d5f680aa7f688416eec19a1f062241f44 (patch)
tree49b75b11f55a38b8503e6537819c30ef25f45af1 /test
parent42c8768134dcfaaf08637e36fe478605c1957517 (diff)
downloademacs-d8e0951d5f680aa7f688416eec19a1f062241f44.tar.gz
emacs-d8e0951d5f680aa7f688416eec19a1f062241f44.zip
; Remove Tramp test instrumentation. Do not merge
* test/Makefile.in: Remove instrumentation for tramp-tests. * test/lisp/net/tramp-tests.el (tramp-test41-asynchronous-requests): Remove instrumentation.
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.in3
-rw-r--r--test/lisp/net/tramp-tests.el15
2 files changed, 3 insertions, 15 deletions
diff --git a/test/Makefile.in b/test/Makefile.in
index 17ab36f5af5..e316c882354 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -146,8 +146,7 @@ endif
146 $(AM_V_ELC)$(emacs) -f batch-byte-compile $< 146 $(AM_V_ELC)$(emacs) -f batch-byte-compile $<
147 147
148## Save logs, and show logs for failed tests. 148## Save logs, and show logs for failed tests.
149WRITE_LOG = $(if $(and ${EMACS_HYDRA_CI}, $(findstring tramp, $@)), |& tee $@, > $@ 2>&1) \ 149WRITE_LOG = > $@ 2>&1 || { STAT=$$?; cat $@; exit $$STAT; }
150 || { STAT=$$?; cat $@; exit $$STAT; }
151 150
152ifeq ($(TEST_LOAD_EL), yes) 151ifeq ($(TEST_LOAD_EL), yes)
153testloadfile = $*.el 152testloadfile = $*.el
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 77b1e2dcc9f..cf85b071e19 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -4452,7 +4452,6 @@ process sentinels. They shall not disturb each other."
4452 ;; seconds, and we send a SIGUSR1 signal after 300 seconds. 4452 ;; seconds, and we send a SIGUSR1 signal after 300 seconds.
4453 (with-timeout (300 (tramp--test-timeout-handler)) 4453 (with-timeout (300 (tramp--test-timeout-handler))
4454 (define-key special-event-map [sigusr1] 'tramp--test-timeout-handler) 4454 (define-key special-event-map [sigusr1] 'tramp--test-timeout-handler)
4455 (tramp--test-instrument-test-case (if (getenv "EMACS_HYDRA_CI") 10 0)
4456 (let* (;; For the watchdog. 4455 (let* (;; For the watchdog.
4457 (default-directory (expand-file-name temporary-file-directory)) 4456 (default-directory (expand-file-name temporary-file-directory))
4458 (watchdog 4457 (watchdog
@@ -4500,16 +4499,11 @@ process sentinels. They shall not disturb each other."
4500 (default-directory tmp-name) 4499 (default-directory tmp-name)
4501 (file 4500 (file
4502 (buffer-name (nth (random (length buffers)) buffers)))) 4501 (buffer-name (nth (random (length buffers)) buffers))))
4503 (tramp--test-message
4504 "Start timer %s %s" file (current-time-string))
4505 (funcall timer-operation file) 4502 (funcall timer-operation file)
4506 ;; Adjust timer if it takes too much time. 4503 ;; Adjust timer if it takes too much time.
4507 (when (> (- (float-time) time) timer-repeat) 4504 (when (> (- (float-time) time) timer-repeat)
4508 (setq timer-repeat (* 1.5 timer-repeat)) 4505 (setq timer-repeat (* 1.5 timer-repeat))
4509 (setf (timer--repeat-delay timer) timer-repeat) 4506 (setf (timer--repeat-delay timer) timer-repeat)))))))
4510 (tramp--test-message "Increase timer %s" timer-repeat))
4511 (tramp--test-message
4512 "Stop timer %s %s" file (current-time-string)))))))
4513 4507
4514 ;; Create temporary buffers. The number of buffers 4508 ;; Create temporary buffers. The number of buffers
4515 ;; corresponds to the number of processes; it could be 4509 ;; corresponds to the number of processes; it could be
@@ -4556,8 +4550,6 @@ process sentinels. They shall not disturb each other."
4556 (proc (get-buffer-process buf)) 4550 (proc (get-buffer-process buf))
4557 (file (process-get proc 'foo)) 4551 (file (process-get proc 'foo))
4558 (count (process-get proc 'bar))) 4552 (count (process-get proc 'bar)))
4559 (tramp--test-message
4560 "Start action %d %s %s" count buf (current-time-string))
4561 ;; Regular operation prior process action. 4553 ;; Regular operation prior process action.
4562 (if (= count 0) 4554 (if (= count 0)
4563 (should-not (file-attributes file)) 4555 (should-not (file-attributes file))
@@ -4571,8 +4563,6 @@ process sentinels. They shall not disturb each other."
4571 (if (= count 2) 4563 (if (= count 2)
4572 (should-not (file-attributes file)) 4564 (should-not (file-attributes file))
4573 (should (file-attributes file))) 4565 (should (file-attributes file)))
4574 (tramp--test-message
4575 "Stop action %d %s %s" count buf (current-time-string))
4576 (process-put proc 'bar (1+ count)) 4566 (process-put proc 'bar (1+ count))
4577 (unless (process-live-p proc) 4567 (unless (process-live-p proc)
4578 (setq buffers (delq buf buffers)))))) 4568 (setq buffers (delq buf buffers))))))
@@ -4580,7 +4570,6 @@ process sentinels. They shall not disturb each other."
4580 ;; Checks. All process output shall exists in the 4570 ;; Checks. All process output shall exists in the
4581 ;; respective buffers. All created files shall be 4571 ;; respective buffers. All created files shall be
4582 ;; deleted. 4572 ;; deleted.
4583 (tramp--test-message "Check %s" (current-time-string))
4584 (dolist (buf buffers) 4573 (dolist (buf buffers)
4585 (with-current-buffer buf 4574 (with-current-buffer buf
4586 (should (string-equal (format "%s\n" buf) (buffer-string))))) 4575 (should (string-equal (format "%s\n" buf) (buffer-string)))))
@@ -4595,7 +4584,7 @@ process sentinels. They shall not disturb each other."
4595 (ignore-errors (delete-process (get-buffer-process buf))) 4584 (ignore-errors (delete-process (get-buffer-process buf)))
4596 (ignore-errors (kill-buffer buf))) 4585 (ignore-errors (kill-buffer buf)))
4597 (ignore-errors (cancel-timer timer)) 4586 (ignore-errors (cancel-timer timer))
4598 (ignore-errors (delete-directory tmp-name 'recursive))))))) 4587 (ignore-errors (delete-directory tmp-name 'recursive))))))
4599 4588
4600(ert-deftest tramp-test42-recursive-load () 4589(ert-deftest tramp-test42-recursive-load ()
4601 "Check that Tramp does not fail due to recursive load." 4590 "Check that Tramp does not fail due to recursive load."