On Mon, Nov 2, 2015 at 7:20 PM, Juanma Barranquero <lekktu@gmail.com> wrote:

> to defining a new comparing function, specific to this test. Which I suppose I'll eventually do.

An additional complication is that file-equal-p is intended to compare existing files ("If FILE1 or FILE2 does not exist, the return value is unspecified."), but the xref-elisp-location values do not seem to be so constrained. In elisp-mode-tests.el there are examples like

   (xref-make "(defun xref-find-definitions)"
     (xref-make-elisp-location
      'xref-find-definitions nil
      (expand-file-name "../../lisp/progmodes/xref.el" emacs-test-dir)))))

but also

   (xref-make "(defun buffer-live-p)"
     (xref-make-elisp-location 'buffer-live-p nil "src/buffer.c"))))