aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMichael Albinus2018-08-12 17:38:24 +0200
committerMichael Albinus2018-08-12 17:38:24 +0200
commit4532def340f8f3f40fccb42b6c265278323bff02 (patch)
tree9917449c844f3d49797bbd4ace14424afcb1579c /test
parent6a7c84d09569b509779ad91ba70d82d550d57115 (diff)
downloademacs-4532def340f8f3f40fccb42b6c265278323bff02.tar.gz
emacs-4532def340f8f3f40fccb42b6c265278323bff02.zip
; Remove instrumentation for Bug#32226
Diffstat (limited to 'test')
-rw-r--r--test/lisp/shadowfile-tests.el40
1 files changed, 1 insertions, 39 deletions
diff --git a/test/lisp/shadowfile-tests.el b/test/lisp/shadowfile-tests.el
index ed2ab9b3292..3bab22f8d66 100644
--- a/test/lisp/shadowfile-tests.el
+++ b/test/lisp/shadowfile-tests.el
@@ -726,26 +726,13 @@ guaranteed by the originator of a cluster definition."
726 shadow-files-to-copy 726 shadow-files-to-copy
727 cluster1 cluster2 primary regexp file) 727 cluster1 cluster2 primary regexp file)
728 (unwind-protect 728 (unwind-protect
729 (condition-case err
730 (progn 729 (progn
731 (require 'trace)
732 (dolist (elt (all-completions "shadow-" obarray 'functionp))
733 (trace-function-background (intern elt)))
734 (dolist (elt (all-completions "tramp-" obarray 'functionp))
735 (trace-function-background (intern elt)))
736 (trace-function-background 'save-buffer)
737 (trace-function-background 'basic-save-buffer)
738 (trace-function-background 'basic-save-buffer-1)
739 (trace-function-background 'basic-save-buffer-2)
740 (dolist (elt write-file-functions)
741 (trace-function-background elt))
742 ;; Cleanup. 730 ;; Cleanup.
743 (when (file-exists-p shadow-info-file) 731 (when (file-exists-p shadow-info-file)
744 (delete-file shadow-info-file)) 732 (delete-file shadow-info-file))
745 (when (file-exists-p shadow-todo-file) 733 (when (file-exists-p shadow-todo-file)
746 (delete-file shadow-todo-file)) 734 (delete-file shadow-todo-file))
747 735
748 (message "Point 1")
749 ;; Define clusters. 736 ;; Define clusters.
750 (setq cluster1 "cluster1" 737 (setq cluster1 "cluster1"
751 primary shadow-system-name 738 primary shadow-system-name
@@ -758,7 +745,6 @@ guaranteed by the originator of a cluster definition."
758 regexp (shadow-regexp-superquote primary)) 745 regexp (shadow-regexp-superquote primary))
759 (shadow-set-cluster cluster2 primary regexp) 746 (shadow-set-cluster cluster2 primary regexp)
760 747
761 (message "Point 2")
762 ;; Define a literal group. 748 ;; Define a literal group.
763 (setq file 749 (setq file
764 (make-temp-name 750 (make-temp-name
@@ -766,38 +752,21 @@ guaranteed by the originator of a cluster definition."
766 shadow-literal-groups 752 shadow-literal-groups
767 `((,(concat "/cluster1:" file) ,(concat "/cluster2:" file)))) 753 `((,(concat "/cluster1:" file) ,(concat "/cluster2:" file))))
768 754
769 (message "Point 3")
770 ;; Save file from "cluster1" definition. 755 ;; Save file from "cluster1" definition.
771 (with-temp-buffer 756 (with-temp-buffer
772 (set-visited-file-name file) 757 (set-visited-file-name file)
773 (insert "foo") 758 (insert "foo")
774 (save-buffer)) 759 (save-buffer))
775 (message "%s" file)
776 (message "%s" (shadow-contract-file-name (concat "/cluster2:" file)))
777 (message "%s" shadow-files-to-copy)
778 (should 760 (should
779 (member 761 (member
780 (cons file (shadow-contract-file-name (concat "/cluster2:" file))) 762 (cons file (shadow-contract-file-name (concat "/cluster2:" file)))
781 shadow-files-to-copy)) 763 shadow-files-to-copy))
782 764
783 (message "Point 4")
784 ;; Save file from "cluster2" definition. 765 ;; Save file from "cluster2" definition.
785 (with-temp-buffer 766 (with-temp-buffer
786 (message "Point 4.1")
787 (message "%s" file)
788 (message "%s" (shadow-site-primary cluster2))
789 (set-visited-file-name (concat (shadow-site-primary cluster2) file)) 767 (set-visited-file-name (concat (shadow-site-primary cluster2) file))
790 (message "Point 4.2")
791 (insert "foo") 768 (insert "foo")
792 (message "%s" buffer-file-name)
793 (message "%s" write-file-functions)
794 (setenv "BUG_32226" "1")
795 (save-buffer)) 769 (save-buffer))
796 (setenv "BUG_32226")
797 (message "Point 4.3")
798 (message "%s" (shadow-site-primary cluster2))
799 (message "%s" (shadow-contract-file-name (concat "/cluster1:" file)))
800 (message "%s" shadow-files-to-copy)
801 (should 770 (should
802 (member 771 (member
803 (cons 772 (cons
@@ -805,7 +774,6 @@ guaranteed by the originator of a cluster definition."
805 (shadow-contract-file-name (concat "/cluster1:" file))) 774 (shadow-contract-file-name (concat "/cluster1:" file)))
806 shadow-files-to-copy)) 775 shadow-files-to-copy))
807 776
808 (message "Point 5")
809 ;; Define a regexp group. 777 ;; Define a regexp group.
810 (setq shadow-files-to-copy nil 778 (setq shadow-files-to-copy nil
811 shadow-regexp-groups 779 shadow-regexp-groups
@@ -814,7 +782,6 @@ guaranteed by the originator of a cluster definition."
814 ,(concat (shadow-site-primary cluster2) 782 ,(concat (shadow-site-primary cluster2)
815 (shadow-regexp-superquote file))))) 783 (shadow-regexp-superquote file)))))
816 784
817 (message "Point 6")
818 ;; Save file from "cluster1" definition. 785 ;; Save file from "cluster1" definition.
819 (with-temp-buffer 786 (with-temp-buffer
820 (set-visited-file-name file) 787 (set-visited-file-name file)
@@ -825,7 +792,6 @@ guaranteed by the originator of a cluster definition."
825 (cons file (shadow-contract-file-name (concat "/cluster2:" file))) 792 (cons file (shadow-contract-file-name (concat "/cluster2:" file)))
826 shadow-files-to-copy)) 793 shadow-files-to-copy))
827 794
828 (message "Point 7")
829 ;; Save file from "cluster2" definition. 795 ;; Save file from "cluster2" definition.
830 (with-temp-buffer 796 (with-temp-buffer
831 (set-visited-file-name (concat (shadow-site-primary cluster2) file)) 797 (set-visited-file-name (concat (shadow-site-primary cluster2) file))
@@ -837,11 +803,6 @@ guaranteed by the originator of a cluster definition."
837 (concat (shadow-site-primary cluster2) file) 803 (concat (shadow-site-primary cluster2) file)
838 (shadow-contract-file-name (concat "/cluster1:" file))) 804 (shadow-contract-file-name (concat "/cluster1:" file)))
839 shadow-files-to-copy))) 805 shadow-files-to-copy)))
840 (error (message "Error: %s" err) (signal (car err) (cdr err))))
841
842 (setenv "BUG_32226")
843 (untrace-all)
844 (message "%s" (with-current-buffer trace-buffer (buffer-string)))
845 806
846 ;; Cleanup. 807 ;; Cleanup.
847 (when (file-exists-p shadow-info-file) 808 (when (file-exists-p shadow-info-file)
@@ -859,6 +820,7 @@ guaranteed by the originator of a cluster definition."
859 "Check that needed shadow files are copied." 820 "Check that needed shadow files are copied."
860 (skip-unless (not (memq system-type '(windows-nt ms-dos)))) 821 (skip-unless (not (memq system-type '(windows-nt ms-dos))))
861 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory)) 822 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
823 (skip-unless (file-writable-p shadow-test-remote-temporary-file-directory))
862 824
863 (let ((backup-inhibited t) 825 (let ((backup-inhibited t)
864 (shadow-info-file shadow-test-info-file) 826 (shadow-info-file shadow-test-info-file)