]> code.delx.au - gnu-emacs/commitdiff
test/automated/vc-hg.el: Support out-of-tree build
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 11 Jan 2016 21:17:49 +0000 (00:17 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 11 Jan 2016 21:17:49 +0000 (00:17 +0300)
* test/automated/vc-hg.el
(vc-hg-annotate-extract-revision-at-line-with-filename)
(vc-hg-annotate-extract-revision-at-line-with-both):
Don't refer to source-directory.
http://lists.gnu.org/archive/html/emacs-devel/2016-01/msg00755.html

test/automated/vc-hg.el

index 68282713a8ab48f11d9cb7eedf4cc803522b28ce..ba966598c4d6f0a44f5c30d7692a184e759e8d2b 100644 (file)
@@ -34,8 +34,7 @@
     (should (equal (vc-hg-annotate-extract-revision-at-line)
                    (cons
                     "215"
-                    (expand-file-name "test/automated/CONTENTS"
-                                      source-directory))))))
+                    (expand-file-name "CONTENTS"))))))
 
 (ert-deftest vc-hg-annotate-extract-revision-at-line-with-user ()
   (with-temp-buffer
@@ -49,8 +48,7 @@
     (should (equal (vc-hg-annotate-extract-revision-at-line)
                    (cons
                     "218075"
-                    (expand-file-name "test/automated/CLOBBER"
-                                      source-directory))))))
+                    (expand-file-name "CLOBBER"))))))
 
 (ert-deftest vc-hg-annotate-time ()
   (with-temp-buffer