[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] Failing tests

From: Ikumi Keita
Subject: Re: [AUCTeX-devel] Failing tests
Date: Sat, 02 Dec 2017 03:09:34 +0900

>>>>> Mosè Giordano <address@hidden> writes:
> This does the trick, I should have recalled it having wrote that
> snippet ;-)  I also took the occasion to reduce a bit code duplication
> in tests.

Thank you, this makes writing tests easy.

>>> For the second one (this is the issue related to delimiters discussed
>>> elsewhere):
>>> Test TeX-variable-truncation backtrace:
>>> TeX-search-files-by-type(abc global)
>>> (let ((var (quote ("str1" "str2"))) (TeX-kpathsea-path-delimiter nil
>> ...
>> This error is due to my last bogus commit.  After applying the proposed
>> fix attached in
>> , the test will succeed.  I'm sorry for inconvinience.

> This test is still failing for me:

> Test TeX-variable-truncation backtrace:
>   TeX-search-files-by-type(abc global)
>   (let ((var (quote ("str1" "str2"))) (TeX-kpathsea-path-delimiter nil
>   (lambda nil (let ((var (quote ("str1" "str2"))) (TeX-kpathsea-path-d
>   ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc
>   ert-run-test([cl-struct-ert-test TeX-variable-truncation "Check whet
>   ert-run-or-rerun-test([cl-struct-ert--stats t [[cl-struct-ert-test T
>   ert-run-tests(t #[385 "\306 \307\"\203G
>   ert-run-tests-batch(nil)
>   ert-run-tests-batch-and-exit()
>   command-line-1(("-L" ".." "-l" "ert" "-l" "make-test-deps.emacs-lisp
>   command-line()
>   normal-top-level()
> Test TeX-variable-truncation condition:
>     (error "No TeX trees available; configure `TeX-tree-roots'")
>    FAILED  1/1  TeX-variable-truncation

Hmm, strange.  It does succeed on my environment.  Are both "tex.el" and
"tex.elc" in the parent directory of "tests/" updated with the patch? (I
attach the same one at the end of this message.)  Note that this patch
is not commited yet in the git repository.
Quoted below is the output of the relavant test on my side.
~/s/a/tests> env -u LANG gmake tex/path-expansion
gmake[1]: Entering directory '/usr/home/keita/scr/auctex/tests'
EMACSLOADPATH= LC_ALL=C  "emacs" -batch -L ".." -l ert -l 
make-test-deps.emacs-lisp -l tex/path-expansion.el \
-f ert-run-tests-batch-and-exit 
Running 1 tests (2017-12-01 21:37:22+0900)
   passed  1/1  TeX-variable-truncation

Ran 1 tests, 1 results as expected (2017-12-01 21:37:22+0900)

gmake[1]: Leaving directory '/usr/home/keita/scr/auctex/tests'

Just running "gmake check" in "tests/" gives the same result:
Files examined: 9
Ran 26 tests, 23 results as expected, 3 skipped

Ikumi Keita

P.S. This is not so an important topic.
> Uhm, not for me, if you mean running make check in tests/.

I meant running "make distclean" in the parent direcrory of "tests/"
followed by running "make" in "tests/".  And I thought that "make" and
"make check" (as well as "make all") do the same thing in "tests/".  Is
there some difference I'm not aware of?

Attachment: possible-fix
Description: patch

reply via email to

[Prev in Thread] Current Thread [Next in Thread]