racer-rust / emacs-racer

Racer support for Emacs
399 stars 48 forks source link

Tests fail with Emacs 27.1 (release candidate) #136

Closed jackhill closed 3 years ago

jackhill commented 4 years ago

Hi,

I was testing emacs-racer 1.2 with the Emacs 27.1 release candidate. Unfortunately, the tests fail with the following log:

make unit
make[1]: Entering directory '/tmp/guix-build-emacs-racer-1.2.drv-0/source'
ert-runner
Package cl is deprecated
..........Test racer--propertize-docstring-footnotes backtrace:

Test racer--propertize-docstring-footnotes condition:

    (ert-test-failed
     ((should
       (equal
    (racer--remove-properties ...)
    "foo str bar

baz."))
      :form
      (equal "foo [strr`] bar

baz." "foo str bar

baz.")
      :value nil :explanation
      (arrays-of-different-length 21 17 "foo [strr`] bar

baz." "foo str bar

baz." first-mismatch-at 4)))

F.Test racer--propertize-docstring-link-after-attribute backtrace:

Test racer--propertize-docstring-link-after-attribute condition:

    (ert-test-failed
     ((should
       (equal
    (racer--remove-properties ...)
    "Result is annotated with the #[must_use] attribute,
by the Write trait"))
      :form
      (equal "Result is annotated with the #[must_use] attribute,
by the `Write` trait" "Result is annotated with the #[must_use] attribute,
by the Write trait")
      :value nil :explanation
      (arrays-of-different-length 72 70 "Result is annotated with the #[must_use] attribute,
by the `Write` trait" "Result is annotated with the #[must_use] attribute,
by the Write trait" first-mismatch-at 59)))

F............

Ran 25 tests in 0.263 seconds
2 unexpected results:
   FAILED  racer--propertize-docstring-footnotes
   FAILED  racer--propertize-docstring-link-after-attribute
make[1]: *** [Makefile:13: unit] Error 1
make[1]: Leaving directory '/tmp/guix-build-emacs-racer-1.2.drv-0/source'
make: *** [Makefile:7: test] Error 2
command "make" "test" "-j" "4" failed with status 2

Best, Jack