[packages/elfutils] upstream test fix

atler atler at pld-linux.org
Wed Aug 17 13:44:28 CEST 2022


commit 6945437276b2fcea5b6b60503496107c72b34844
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Aug 17 13:44:07 2022 +0200

    upstream test fix

 elfutils.spec |  2 ++
 tests.patch   | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
---
diff --git a/elfutils.spec b/elfutils.spec
index d99ffc3..bc20761 100644
--- a/elfutils.spec
+++ b/elfutils.spec
@@ -19,6 +19,7 @@ Patch3:		%{name}-align.patch
 Patch4:		%{name}-paxflags.patch
 Patch5:		%{name}-sparc.patch
 Patch6:		disable-tests.patch
+Patch7:		tests.patch
 URL:		https://sourceware.org/elfutils/
 BuildRequires:	autoconf >= 2.63
 BuildRequires:	automake >= 1:1.11
@@ -194,6 +195,7 @@ Plik nagłówkowy biblioteki debuginfod.
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 %{__rm} po/stamp-po
 
diff --git a/tests.patch b/tests.patch
new file mode 100644
index 0000000..02f6f41
--- /dev/null
+++ b/tests.patch
@@ -0,0 +1,32 @@
+From b661e39349a89a47793c4d15e9ca8df016c3871b Mon Sep 17 00:00:00 2001
+From: Sergei Trofimovich via Elfutils-devel <elfutils-devel at sourceware.org>
+Date: Sat, 6 Aug 2022 09:55:06 +0100
+Subject: [PATCH] tests: run-low_high_pc.sh: drop redundant 'lx' suffix
+
+Noticed when debugged test failure:
+
+    lowpc: 8049000, highpc: 8049000lx
+    ../sysdeps/i386/crti.S: [2def] '_init' highpc <= lowpc
+
+Signed-off-by: Sergei Trofimovich <slyich at gmail.com>
+---
+ tests/ChangeLog     | 4 ++++
+ tests/low_high_pc.c | 2 +-
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/tests/low_high_pc.c b/tests/low_high_pc.c
+index 78b6ad08d..cd022b1cc 100644
+--- a/tests/low_high_pc.c
++++ b/tests/low_high_pc.c
+@@ -72,7 +72,7 @@ handle_die (Dwarf_Die *die, void *arg)
+       && highpc <= lowpc
+       && ! (dwarf_tag (die) == DW_TAG_compile_unit && highpc == lowpc))
+     {
+-      printf("lowpc: %" PRIx64 ", highpc: %" PRIx64 "lx\n", lowpc, highpc);
++      printf("lowpc: %" PRIx64 ", highpc: %" PRIx64 "\n", lowpc, highpc);
+       fail (off, name, "highpc <= lowpc");
+     }
+ 
+-- 
+2.31.1
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/elfutils.git/commitdiff/6945437276b2fcea5b6b60503496107c72b34844



More information about the pld-cvs-commit mailing list