SHA256
1
0
forked from pool/elfutils
elfutils/dwelf_elf_e_machine_string.patch
Richard Biener 9c3347a7b7 Accepting request 748720 from home:Andreas_Schwab:Factory
- disable-tests-with-ptrace.patch: Remove, set XFAIL_TESTS instead
- dwelf_elf_e_machine_string.patch: Avoid spurious failure

OBS-URL: https://build.opensuse.org/request/show/748720
OBS-URL: https://build.opensuse.org/package/show/Base:System/elfutils?expand=0&rev=138
2019-11-15 07:52:19 +00:00

13 lines
444 B
Diff

Index: elfutils-0.177/tests/dwelf_elf_e_machine_string.c
===================================================================
--- elfutils-0.177.orig/tests/dwelf_elf_e_machine_string.c
+++ elfutils-0.177/tests/dwelf_elf_e_machine_string.c
@@ -40,6 +40,7 @@ main (int argc, char **argv)
int em;
const char *machine;
+ errno = 0;
if (strncmp ("0x", argv[i], 2) == 0)
val = strtol (&argv[i][2], NULL, 16);
else