aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp
diff options
context:
space:
mode:
authorToby Dylan Hocking2026-03-26 08:51:27 -0400
committerSean Whitton2026-04-15 18:11:00 -0400
commiteb4835e5215fdc1af78ac660abf7afcee7a79434 (patch)
tree805a69ea34a99363f9a7324f9e130f5a3ba6825e /test/lisp
parent5045394694d72323a6746130e43cdcda2a293740 (diff)
downloademacs-master.tar.gz
emacs-master.zip
Make | optional for 'gnu' regexp in compilation-mode (bug#80681)HEADmaster
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Make leading '|' optional when there are leading spaces (bug#80681). * etc/compilation.txt (GNU style): New error with two leading spaces. * test/lisp/progmodes/compile-tests.el (compile-test-error-regexps): Increment expected compilation-num-errors-found. (compile-tests--test-regexps-data): New error test case for 'gnu' with two leading spaces. Change expected match for 'cucumber' to match again 'gnu'. Copyright-paperwork-exempt: yes
Diffstat (limited to 'test/lisp')
-rw-r--r--test/lisp/progmodes/compile-tests.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/lisp/progmodes/compile-tests.el b/test/lisp/progmodes/compile-tests.el
index 67a713857e3..caf386b4950 100644
--- a/test/lisp/progmodes/compile-tests.el
+++ b/test/lisp/progmodes/compile-tests.el
@@ -121,7 +121,8 @@
121 ;; cucumber 121 ;; cucumber
122 (cucumber "Scenario: undefined step # features/cucumber.feature:3" 122 (cucumber "Scenario: undefined step # features/cucumber.feature:3"
123 29 nil 3 "features/cucumber.feature" error) 123 29 nil 3 "features/cucumber.feature" error)
124 (cucumber " /home/gusev/.rvm/foo/bar.rb:500:in `_wrap_assertion'" 124 ;; Below is from cucumber but gnu regexp is consistent and matches first.
125 (gnu " /home/gusev/.rvm/foo/bar.rb:500:in `_wrap_assertion'"
125 1 nil 500 "/home/gusev/.rvm/foo/bar.rb" error) 126 1 nil 500 "/home/gusev/.rvm/foo/bar.rb" error)
126 ;; edg-1 edg-2 127 ;; edg-1 edg-2
127 (edg-1 "build/intel/debug/../../../struct.cpp(42): error: identifier \"foo\" is undefined" 128 (edg-1 "build/intel/debug/../../../struct.cpp(42): error: identifier \"foo\" is undefined"
@@ -271,6 +272,8 @@
271 1 nil 27041 "{standard input}" warning) 272 1 nil 27041 "{standard input}" warning)
272 (gnu "boost/container/detail/flat_tree.hpp:589:25: [ skipping 5 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]" 273 (gnu "boost/container/detail/flat_tree.hpp:589:25: [ skipping 5 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]"
273 1 25 589 "boost/container/detail/flat_tree.hpp" info) 274 1 25 589 "boost/container/detail/flat_tree.hpp" info)
275 ;; Below from pip install, running g++ to compile python extension module.
276 (gnu " src/add.cpp:8:31: error: invalid operands of types ‘const double’ and ‘const double*’ to binary ‘operator+’" 1 31 8 "src/add.cpp" error)
274 ;; Gradle/Kotlin 277 ;; Gradle/Kotlin
275 (gradle-kotlin 278 (gradle-kotlin
276 "e: file:///src/Test.kt:267:5 foo: bar" 4 5 267 "/src/Test.kt" error) 279 "e: file:///src/Test.kt:267:5 foo: bar" 4 5 267 "/src/Test.kt" error)
@@ -556,7 +559,7 @@ The test data is in `compile-tests--test-regexps-data'."
556 1 15 5 "alpha.c"))) 559 1 15 5 "alpha.c")))
557 (compile--test-error-line test)) 560 (compile--test-error-line test))
558 561
559 (should (eq compilation-num-errors-found 110)) 562 (should (eq compilation-num-errors-found 111))
560 (should (eq compilation-num-warnings-found 37)) 563 (should (eq compilation-num-warnings-found 37))
561 (should (eq compilation-num-infos-found 36))))) 564 (should (eq compilation-num-infos-found 36)))))
562 565