commit:     0b9876a6741959d319bca158db3935baa9a556c5
Author:     Mats Lidell <matsl <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 21 15:24:07 2024 +0000
Commit:     Mats Lidell <matsl <AT> gentoo <DOT> org>
CommitDate: Thu Nov 21 15:26:50 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b9876a6

app-editors/xemacs: remove test causing QA notice

Test for calling unknown_command causes QA notice. Resolve
by removing the test.

Closes: https://bugs.gentoo.org/944219
Signed-off-by: Mats Lidell <matsl <AT> gentoo.org>

 .../xemacs/files/xemacs-21.5.35-unknown-command-test.patch   | 12 ++++++++++++
 app-editors/xemacs/xemacs-21.5.35-r5.ebuild                  |  1 +
 app-editors/xemacs/xemacs-21.5.9999.ebuild                   |  1 +
 3 files changed, 14 insertions(+)

diff --git a/app-editors/xemacs/files/xemacs-21.5.35-unknown-command-test.patch 
b/app-editors/xemacs/files/xemacs-21.5.35-unknown-command-test.patch
new file mode 100644
index 000000000000..4fb7d4c58a44
--- /dev/null
+++ b/app-editors/xemacs/files/xemacs-21.5.35-unknown-command-test.patch
@@ -0,0 +1,12 @@
+diff -r fd166650770a tests/automated/process-tests.el
+--- a/tests/automated/process-tests.el Sat May 13 15:18:19 2023 +0100
++++ b/tests/automated/process-tests.el Thu Nov 21 15:24:34 2024 +0100
+@@ -52,7 +52,7 @@
+     (goto-char (point-min))
+     (Assert (looking-at "foo"))):
+ 
+-  (Assert (= 127 (shell-command "unknown_command")))
++  ;;(Assert (= 127 (shell-command "unknown_command")))
+   (Assert (= 2 (shell-command "exit 2")))
+   (Assert (equal "(Shell command failed with code 2 and no output)" 
(message-displayed-p t)))
+   

diff --git a/app-editors/xemacs/xemacs-21.5.35-r5.ebuild 
b/app-editors/xemacs/xemacs-21.5.35-r5.ebuild
index b96d774099ab..4b5fc14d88d7 100644
--- a/app-editors/xemacs/xemacs-21.5.35-r5.ebuild
+++ b/app-editors/xemacs/xemacs-21.5.35-r5.ebuild
@@ -70,6 +70,7 @@ src_prepare() {
        eapply "${FILESDIR}/${P}-va_args.patch"
        eapply "${FILESDIR}/${P}-linker-flags.patch"
        eapply "${WORKDIR}/${P}-ootags-boolint.patch"
+       eapply "${FILESDIR}/${P}-unknown-command-test.patch"
 
        eapply_user
 

diff --git a/app-editors/xemacs/xemacs-21.5.9999.ebuild 
b/app-editors/xemacs/xemacs-21.5.9999.ebuild
index 43b49b662f80..2d5ac33dd3be 100644
--- a/app-editors/xemacs/xemacs-21.5.9999.ebuild
+++ b/app-editors/xemacs/xemacs-21.5.9999.ebuild
@@ -65,6 +65,7 @@ src_prepare() {
        find "${S}"/lisp -name '*.elc' -exec rm {} \; || die
        eapply "${FILESDIR}/${PN}-21.5.35-mule-tests.patch"
        eapply "${FILESDIR}/${PN}-21.5.35-configure-libc-version.patch"
+       eapply "${FILESDIR}/${PN}-21.5.35-unknown-command-test.patch"
 
        eapply_user
 

Reply via email to