Skip to content

FAILED bug-hunter-reader-error-test #33

@dogsleg

Description

@dogsleg

Hi,

First of all thanks for your work on elisp-bug-hunter!

With GNU Emacs 28.1 I'm getting the following error while running tests (sorry for the length of the output):

$ LC_ALL=C.UTF-8 emacs -batch -Q -l package --eval "(setq native-comp-eln-load-path '(\"/tmp/DV20RUarsG\"))" --eval "(add-to-list 'package-directory-list \"/usr/share/emacs/site-lisp/elpa\")" --eval "(add-to-list 'package-directory-list \"/usr/share/emacs/site-lisp/elpa-src\")" -f package-initialize -L . -l bug-hunter-test.el --eval \(ert-run-tests-batch-and-exit\) > test_result.txt
Package cl is deprecated
Running 6 tests (2022-10-07 17:28:21+0500, selector ‘t’)
Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/5
Testing: 2/5
Testing: 3/5
Testing: 4/5
Testing: 5/5
nil, line 12 pos 90:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Testing: 1/0
Testing: 2/0
Testing: 3/0
Testing: 4/0
Testing: 1/0
Testing: 2/0
Testing: 3/0
Testing: 1/0
Testing: 2/0
Testing: 3/0
Testing: 4/0
Testing: 1/0
Testing: 2/0
Testing: 3/0
Testing: 1/0
Testing: 2/0
Testing: 3/0
Testing: 4/0
Testing: 1/0
Testing: 2/0
Testing: 3/0
Testing: 1/0
Testing: 2/0
Testing: 3/0
Testing: 4/0
Testing: 1/0
Testing: 2/0
Testing: 3/0
   passed  1/6  bug-hunter-looong-hunt (45.898280 sec)
"/home/dogsleg/freedom/packaging/elpa/elisp-bug-hunter/bug-hunter-test-dummy-file", line 2 pos 0:
  There's a # on this position, and that is not valid elisp syntax.



Test bug-hunter-reader-error-test backtrace:
  signal(ert-test-failed (((should (equal (bug-hunter-file file nil) [
  ert-fail(((should (equal (bug-hunter-file file nil) [(invalid-read-s
  (if (unwind-protect (setq value-46 (apply fn-44 args-45)) (setq form
  (let (form-description-48) (if (unwind-protect (setq value-46 (apply
  (let ((value-46 'ert-form-evaluation-aborted-47)) (let (form-descrip
  (let* ((fn-44 #'equal) (args-45 (condition-case err (let ((signal-ho
  (let ((file (expand-file-name "bug-hunter-test-dummy-file" default-d
  (let ((lexical-binding nil)) (let ((file (expand-file-name "bug-hunt
  (lambda nil (let ((lexical-binding nil)) (let ((file (expand-file-na
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name bug-hunter-reader-error-test :documen
  ert-run-or-rerun-test(#s(ert--stats :selector t :tests [... ... ... 
  ert-run-tests(t #f(compiled-function (event-type &rest event-args) #
  ert-run-tests-batch(nil)
  ert-run-tests-batch-and-exit()
  command-line-1(("-l" "package" "--eval" "(setq native-comp-eln-load-
  command-line()
  normal-top-level()
Test bug-hunter-reader-error-test condition:
    (ert-test-failed
     ((should
       (equal
	(bug-hunter-file file nil)
	[... 2 0]))
      :form
      (equal
       [(invalid-read-syntax "#" 2 1)
	2 0]
       [(invalid-read-syntax "#")
	2 0])
      :value nil :explanation
      (array-elt 0
		 (proper-lists-of-different-length 4 2
						   (invalid-read-syntax "#" 2 1)
						   (invalid-read-syntax "#")
						   first-mismatch-at 2))))
   FAILED  2/6  bug-hunter-reader-error-test (0.002568 sec)
Doing some initial tests...
...skipping...
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
...skipping...
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
...skipping...
Initial tests done. Hunting for the cause...
Testing: 1/2
Testing: 2/2
nil, line 5 pos 2:
  The following error was signaled here:
    (void-variable not-defined)
  Caused by the following expression:
    not-defined



Doing some initial tests...
Initial tests done. Hunting for the cause...
Testing: 1/2
Testing: 2/2
nil, line 2 pos 11:
  The assertion returned the following value here:
    t
  Caused by the following expression:
    (setq test2 2)




   passed  3/6  bug-hunter-test (2.856719 sec)
Doing some initial tests...
   passed  4/6  bug-hunter-test-interactive (0.934679 sec)
Doing some initial tests...
   passed  5/6  bug-hunter-test-nobug (0.430918 sec)
   passed  6/6  bug-hunter-test-volcano (0.000171 sec)

Ran 6 tests, 5 results as expected, 1 unexpected (2022-10-07 17:29:11+0500, 50.553653 sec)

1 unexpected results:
   FAILED  bug-hunter-reader-error-test

I guess it can be related to #32

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions