forked from pool/elfutils
9c3347a7b7
- 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
13 lines
444 B
Diff
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
|