From 2d307a63d6b83f89a8399847d33322ae38a9ed32 Mon Sep 17 00:00:00 2001 From: Hendrik Tews Date: Sun, 3 Mar 2024 21:34:16 +0100 Subject: [PATCH] fix tests for preceding commit - update manuals - expect test goals-reset-after-admitted to fail again - expect errors in tests 020_coq-test-definition, 090_coq-test-regression-Fail and 091_coq-test-regression-Fail --- ci/coq-tests.el | 13 +++++++++++++ ci/simple-tests/coq-test-goals-present.el | 1 + doc/PG-adapting.texi | 2 ++ 3 files changed, 16 insertions(+) diff --git a/ci/coq-tests.el b/ci/coq-tests.el index 7f4291b16..d911f6e21 100644 --- a/ci/coq-tests.el +++ b/ci/coq-tests.el @@ -196,6 +196,8 @@ For example, COMMENT could be (*test-definition*)" (ert-deftest 020_coq-test-definition () + ;; There are no infomsgr when running silent. + :expected-result :failed "Test *response* output after asserting a Definition." (coq-fixture-on-file (coq-test-full-path "test_stepwise.v") @@ -317,6 +319,10 @@ For example, COMMENT could be (*test-definition*)" (ert-deftest 090_coq-test-regression-Fail() + ;; When running silent, the message about indeed failing is not + ;; shown. One might fix this test by checking that there is no + ;; error, which would be shown without Fail. + :expected-result :failed "Test for Fail" (coq-fixture-on-file (coq-test-full-path "test_stepwise.v") @@ -338,6 +344,13 @@ Tactic failure: Cannot solve this goal." "*coq*"))))) ;; (coq-should-buffer-regexp (regexp-quote "The command has indeed failed with message: Tactic failure: Cannot solve this goal.") "*response*") (ert-deftest 091_coq-test-regression-Fail() + ;; XXX What is the difference between this test and + ;; 090_coq-test-regression-Fail? + + ;; When running silent, the message about indeed failing is not + ;; shown. One might fix this test by checking that there is no + ;; error, which would be shown without Fail. + :expected-result :failed "Test for Fail" (coq-fixture-on-file (coq-test-full-path "test_stepwise.v") diff --git a/ci/simple-tests/coq-test-goals-present.el b/ci/simple-tests/coq-test-goals-present.el index 520c5a3f9..c5d295135 100644 --- a/ci/simple-tests/coq-test-goals-present.el +++ b/ci/simple-tests/coq-test-goals-present.el @@ -171,6 +171,7 @@ goals buffer is not empty afterwards." (goals-after-test coq-src-error "error")) (ert-deftest goals-reset-after-admitted () + :expected-result :failed "The goals buffer is reset after an Admitted." (message "goals-reset-after-admitted: Check that goals are reset after Admitted.") diff --git a/doc/PG-adapting.texi b/doc/PG-adapting.texi index 3e5e72e39..37aaaa518 100644 --- a/doc/PG-adapting.texi +++ b/doc/PG-adapting.texi @@ -3890,6 +3890,8 @@ bother the user. They may include @code{'no-goals-display} do not goals in @strong{goals} buffer @code{'proof-tree-show-subgoal} item inserted by the proof-tree package @code{'priority-action} item added via @code{proof-add-to-priority-queue} + @code{'empty-action-list} @code{proof-shell-empty-action-list-command} should not be + called if this is the last item in the action list @end lisp Note that @code{'invisible} does not imply any of the others. If flags are non-empty, interactive cues will be surpressed. (E.g.,