aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMichael Albinus2018-08-09 15:40:37 +0200
committerMichael Albinus2018-08-09 15:40:37 +0200
commit53483df0de0085dbc9ef0b15a0f629ab808b0147 (patch)
treec838b13d232aa5157c60bb267fe38d8601590064 /test
parentf1a385ded23c22edc3f5005bcaa2129eb1d87448 (diff)
downloademacs-53483df0de0085dbc9ef0b15a0f629ab808b0147.tar.gz
emacs-53483df0de0085dbc9ef0b15a0f629ab808b0147.zip
; More instrumentation for shadowfile-tests.el and files.el
Diffstat (limited to 'test')
-rw-r--r--test/lisp/shadowfile-tests.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/lisp/shadowfile-tests.el b/test/lisp/shadowfile-tests.el
index 0335caa5168..22f7b2de6ed 100644
--- a/test/lisp/shadowfile-tests.el
+++ b/test/lisp/shadowfile-tests.el
@@ -724,6 +724,8 @@ guaranteed by the originator of a cluster definition."
724 (dolist (elt (all-completions "shadow-" obarray 'functionp)) 724 (dolist (elt (all-completions "shadow-" obarray 'functionp))
725 (trace-function-background (intern elt))) 725 (trace-function-background (intern elt)))
726 (trace-function-background 'save-buffer) 726 (trace-function-background 'save-buffer)
727 (dolist (elt write-file-functions)
728 (trace-function-background elt))
727 ;; Cleanup. 729 ;; Cleanup.
728 (when (file-exists-p shadow-info-file) 730 (when (file-exists-p shadow-info-file)
729 (delete-file shadow-info-file)) 731 (delete-file shadow-info-file))
@@ -775,7 +777,10 @@ guaranteed by the originator of a cluster definition."
775 (message "Point 4.2") 777 (message "Point 4.2")
776 (insert "foo") 778 (insert "foo")
777 (message "%s" buffer-file-name) 779 (message "%s" buffer-file-name)
780 (message "%s" write-file-functions)
781 (setenv "BUG_32226" "1")
778 (save-buffer)) 782 (save-buffer))
783 (setenv "BUG_32226")
779 (message "Point 4.3") 784 (message "Point 4.3")
780 (message "%s" (shadow-site-primary cluster2)) 785 (message "%s" (shadow-site-primary cluster2))
781 (message "%s" (shadow-contract-file-name (concat "/cluster1:" file))) 786 (message "%s" (shadow-contract-file-name (concat "/cluster1:" file)))
@@ -821,6 +826,7 @@ guaranteed by the originator of a cluster definition."
821 shadow-files-to-copy))) 826 shadow-files-to-copy)))
822 (error (message "Error: %s" err) (signal (car err) (cdr err)))) 827 (error (message "Error: %s" err) (signal (car err) (cdr err))))
823 828
829 (setenv "BUG_32226")
824 (untrace-all) 830 (untrace-all)
825 (message "%s" (with-current-buffer trace-buffer (buffer-string))) 831 (message "%s" (with-current-buffer trace-buffer (buffer-string)))
826 832