aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.in3
-rw-r--r--test/lisp/net/tramp-tests.el14
2 files changed, 14 insertions, 3 deletions
diff --git a/test/Makefile.in b/test/Makefile.in
index 414eca90564..11373db8ca9 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -147,7 +147,8 @@ endif
147%.log: %.elc 147%.log: %.elc
148 $(AM_V_at)${MKDIR_P} $(dir $@) 148 $(AM_V_at)${MKDIR_P} $(dir $@)
149 $(AM_V_GEN)HOME=/nonexistent $(emacs) -l ert -l $(testloadfile) \ 149 $(AM_V_GEN)HOME=/nonexistent $(emacs) -l ert -l $(testloadfile) \
150 --eval "(ert-run-tests-batch-and-exit ${SELECTOR_ACTUAL})" ${WRITE_LOG} 150 --eval "(ert-run-tests-batch-and-exit ${SELECTOR_ACTUAL})" \
151 $(if $(and ${NIX_STORE}, $(findstring tramp, $(testloadfile))), , ${WRITE_LOG})
151 152
152ifeq (@HAVE_MODULES@, yes) 153ifeq (@HAVE_MODULES@, yes)
153maybe_exclude_module_tests := 154maybe_exclude_module_tests :=
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 6c02daa6547..8001d9433a0 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -3729,13 +3729,17 @@ process sentinels. They shall not disturb each other."
3729 (let ((default-directory tmp-name) 3729 (let ((default-directory tmp-name)
3730 (file 3730 (file
3731 (buffer-name (nth (random (length buffers)) buffers)))) 3731 (buffer-name (nth (random (length buffers)) buffers))))
3732 (funcall timer-operation file)))))) 3732 (tramp--test-message
3733 "Start timer %s %s" file (current-time-string))
3734 (funcall timer-operation file)
3735 (tramp--test-message
3736 "Stop timer %s %s" file (current-time-string)))))))
3733 3737
3734 ;; Create temporary buffers. The number of buffers 3738 ;; Create temporary buffers. The number of buffers
3735 ;; corresponds to the number of processes; it could be 3739 ;; corresponds to the number of processes; it could be
3736 ;; increased in order to make pressure on Tramp. 3740 ;; increased in order to make pressure on Tramp.
3737 (dotimes (_i number-proc) 3741 (dotimes (_i number-proc)
3738 (add-to-list 'buffers (generate-new-buffer "foo"))) 3742 (setq buffers (cons (generate-new-buffer "foo") buffers)))
3739 3743
3740 ;; Open asynchronous processes. Set process filter and sentinel. 3744 ;; Open asynchronous processes. Set process filter and sentinel.
3741 (dolist (buf buffers) 3745 (dolist (buf buffers)
@@ -3776,6 +3780,8 @@ process sentinels. They shall not disturb each other."
3776 (proc (get-buffer-process buf)) 3780 (proc (get-buffer-process buf))
3777 (file (process-get proc 'foo)) 3781 (file (process-get proc 'foo))
3778 (count (process-get proc 'bar))) 3782 (count (process-get proc 'bar)))
3783 (tramp--test-message
3784 "Start action %d %s %s" count buf (current-time-string))
3779 ;; Regular operation. 3785 ;; Regular operation.
3780 (if (= count 0) 3786 (if (= count 0)
3781 (should-not (file-attributes file)) 3787 (should-not (file-attributes file))
@@ -3787,6 +3793,8 @@ process sentinels. They shall not disturb each other."
3787 (if (= count 2) 3793 (if (= count 2)
3788 (should-not (file-attributes file)) 3794 (should-not (file-attributes file))
3789 (should (file-attributes file))) 3795 (should (file-attributes file)))
3796 (tramp--test-message
3797 "Stop action %d %s %s" count buf (current-time-string))
3790 (process-put proc 'bar (1+ count)) 3798 (process-put proc 'bar (1+ count))
3791 (unless (process-live-p proc) 3799 (unless (process-live-p proc)
3792 (setq buffers (delq buf buffers)))))) 3800 (setq buffers (delq buf buffers))))))
@@ -3794,6 +3802,8 @@ process sentinels. They shall not disturb each other."
3794 ;; Checks. All process output shall exists in the 3802 ;; Checks. All process output shall exists in the
3795 ;; respective buffers. All created files shall be 3803 ;; respective buffers. All created files shall be
3796 ;; deleted. 3804 ;; deleted.
3805 (tramp--test-message
3806 "Check %s" (current-time-string))
3797 (dolist (buf buffers) 3807 (dolist (buf buffers)
3798 (with-current-buffer buf 3808 (with-current-buffer buf
3799 (should (string-equal (format "%s\n" buf) (buffer-string))))) 3809 (should (string-equal (format "%s\n" buf) (buffer-string)))))