[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] master fabe6759: Adapt regression test for the previous c
From: |
auctex-commit |
Subject: |
[AUCTeX-diffs] master fabe6759: Adapt regression test for the previous commit |
Date: |
Sun, 1 May 2022 00:25:18 -0400 (EDT) |
branch: master
commit fabe675915d1c29302f9326aae592b926cd77598
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
Adapt regression test for the previous commit
* tests/tex/error-parsing.el (TeX-error-parsing): Tweak
`default-diretory' so that `TeX-parse-error' can find dummy file.
* tests/tex/test.tex: New dummy file.
---
tests/tex/error-parsing.el | 9 +++++++--
tests/tex/test.tex | 1 +
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/tests/tex/error-parsing.el b/tests/tex/error-parsing.el
index 0bca37d7..afdf3f97 100644
--- a/tests/tex/error-parsing.el
+++ b/tests/tex/error-parsing.el
@@ -1,6 +1,6 @@
;;; error-parsing.el --- tests for error parsing -*- lexical-binding: t; -*-
-;; Copyright (C) 2016-2021 Free Software Foundation, Inc.
+;; Copyright (C) 2016-2022 Free Software Foundation, Inc.
;; This file is part of AUCTeX.
@@ -34,7 +34,12 @@
(setq TeX-debug-warnings t
TeX-debug-bad-boxes t)
(insert-file-contents TeX-test-compilation-log)
- (TeX-parse-all-errors)
+ ;; Set `default-directory' so that `TeX-parse-error' can
+ ;; find dummy file "./test.tex".
+ (let ((default-directory
+ (expand-file-name
+ (file-name-directory TeX-test-compilation-log))))
+ (TeX-parse-all-errors))
TeX-error-list)
'((warning
"./nice-class.cls" 32
diff --git a/tests/tex/test.tex b/tests/tex/test.tex
new file mode 100644
index 00000000..d7d69b4d
--- /dev/null
+++ b/tests/tex/test.tex
@@ -0,0 +1 @@
+This is a dummy file for `TeX-error-parsing' in error-parsing.el.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [AUCTeX-diffs] master fabe6759: Adapt regression test for the previous commit,
auctex-commit <=