From 25dd4f169d939295e76b8eb1c2fae2e3c15a191b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mattias=20Engdeg=C3=A5rd?= Date: Mon, 11 Jul 2022 12:19:18 +0200 Subject: [PATCH] Add test for the gradle-android compilation message pattern * etc/compilation.txt (symbol): Add example. * test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data): (compile-test-error-regexps): Add test case (bug#56249). --- etc/compilation.txt | 9 +++++++++ test/lisp/progmodes/compile-tests.el | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/etc/compilation.txt b/etc/compilation.txt index 111b2a37dce..fc254dd3d77 100644 --- a/etc/compilation.txt +++ b/etc/compilation.txt @@ -193,6 +193,15 @@ symbol: gradle-kotlin e: /src/Test.kt: (34, 15): foo: bar w: /src/Test.kt: (34, 15): foo: bar +* Gradle Android resource linking + +symbol: gradle-android + +Execution failed for task ':app:processDebugResources'. +> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction + > Android resource linking failed + ERROR:/Users/salutis/src/AndroidSchemeExperiment/app/build/intermediates/incremental/debug/mergeDebugResources/stripped.dir/layout/item.xml:3: AAPT: error: '16dpw' is incompatible with attribute padding (attr) dimension. + * IAR Systems C Compiler diff --git a/test/lisp/progmodes/compile-tests.el b/test/lisp/progmodes/compile-tests.el index 774370be4cf..36bdbe4c91b 100644 --- a/test/lisp/progmodes/compile-tests.el +++ b/test/lisp/progmodes/compile-tests.el @@ -260,6 +260,9 @@ "e: e:\\src\\Test.kt: (34, 15): foo: bar" 4 15 34 "e:\\src\\Test.kt" 2) (gradle-kotlin "w: e:\\src\\Test.kt: (11, 98): foo: bar" 4 98 11 "e:\\src\\Test.kt" 1) + (gradle-android + " ERROR:/Users/salutis/src/AndroidSchemeExperiment/app/build/intermediates/incremental/debug/mergeDebugResources/stripped.dir/layout/item.xml:3: AAPT: error: '16dpw' is incompatible with attribute padding (attr) dimension." + 1 nil 3 "/Users/salutis/src/AndroidSchemeExperiment/app/build/intermediates/incremental/debug/mergeDebugResources/stripped.dir/layout/item.xml" 2) ;; Guile (guile-file "In foo.scm:\n" 1 nil nil "foo.scm") (guile-line " 63:4 [call-with-prompt prompt0 ...]" 1 4 63 nil) @@ -492,7 +495,7 @@ The test data is in `compile-tests--test-regexps-data'." (compilation-num-warnings-found 0) (compilation-num-infos-found 0)) (mapc #'compile--test-error-line compile-tests--test-regexps-data) - (should (eq compilation-num-errors-found 97)) + (should (eq compilation-num-errors-found 98)) (should (eq compilation-num-warnings-found 35)) (should (eq compilation-num-infos-found 28))))) -- 2.39.5