diff options
| author | Ulf Hermann <[email protected]> | 2017-04-20 15:47:49 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2017-04-26 00:38:29 +0200 |
| commit | 9130b539c58d262536d7ef2bd4e49d4e66a3fc08 (patch) | |
| tree | 7ffe492a15e09dff16f4cab34d13884ccd2e5a54 /tests | |
| parent | 4159aa62cca90f4640784636dc7a3db07ef1133a (diff) | |
Avoid YESSTR and NOSTR
Those are deprecated and apparently some implementations of nl_langinfo
return empty strings for them. The tests even tested for those empty
strings even though the intention of the code was clearly to output
"yes" or "no" there.
Signed-off-by: Ulf Hermann <[email protected]>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ChangeLog | 6 | ||||
| -rwxr-xr-x | tests/run-readelf-dwz-multi.sh | 30 | ||||
| -rwxr-xr-x | tests/run-readelf-zdebug-rel.sh | 6 |
3 files changed, 24 insertions, 18 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index ebcd7bcc..c4e76d15 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,5 +1,11 @@ 2017-04-20 Ulf Hermann <[email protected]> + * run-readelf-dwz-multi.sh: Expect readelf to output "yes" for flags + that are set. + * run-readelf-zdebug-rel.sh: Likewise. + +2017-04-20 Ulf Hermann <[email protected]> + * backtrace-child.c: Include sys/ptrace.h only on linux. * backtrace-dwarf.c: Likewise. diff --git a/tests/run-readelf-dwz-multi.sh b/tests/run-readelf-dwz-multi.sh index 27e0f38c..23ca944c 100755 --- a/tests/run-readelf-dwz-multi.sh +++ b/tests/run-readelf-dwz-multi.sh @@ -98,17 +98,17 @@ DWARF section [28] '.debug_info' at offset 0x1078: byte_size (data1) 8 type (GNU_ref_alt) [ 53] [ 31] subprogram - external (flag_present) + external (flag_present) yes name (strp) "main" decl_file (data1) 1 decl_line (data1) 3 - prototyped (flag_present) + prototyped (flag_present) yes type (GNU_ref_alt) [ 3e] low_pc (addr) 0x00000000004006ac <main> high_pc (udata) 44 (0x00000000004006d8) frame_base (exprloc) [ 0] call_frame_cfa - GNU_all_tail_call_sites (flag_present) + GNU_all_tail_call_sites (flag_present) yes sibling (ref_udata) [ 6e] [ 48] formal_parameter name (strp) "argc" @@ -159,17 +159,17 @@ DWARF section [28] '.debug_info' at offset 0x1078: byte_size (data1) 8 type (GNU_ref_alt) [ 53] [ 31] subprogram - external (flag_present) + external (flag_present) yes name (strp) "main" decl_file (data1) 1 decl_line (data1) 3 - prototyped (flag_present) + prototyped (flag_present) yes type (GNU_ref_alt) [ 3e] low_pc (addr) 0x00000000004006ac <main> high_pc (udata) 44 (0x00000000004006d8) frame_base (exprloc) [ 0] call_frame_cfa - GNU_all_tail_call_sites (flag_present) + GNU_all_tail_call_sites (flag_present) yes sibling (ref_udata) [ 6e] [ 48] formal_parameter name (strp) "argc" @@ -216,17 +216,17 @@ DWARF section [25] '.debug_info' at offset 0x106c: [ 26] imported_unit import (GNU_ref_alt) [ b] [ 2b] subprogram - external (flag_present) + external (flag_present) yes name (strp) "call_foo" decl_file (data1) 1 decl_line (data1) 3 - prototyped (flag_present) + prototyped (flag_present) yes type (GNU_ref_alt) [ 3e] low_pc (addr) +0x0000000000000670 <call_foo> high_pc (udata) 23 (+0x0000000000000687) frame_base (exprloc) [ 0] call_frame_cfa - GNU_all_call_sites (flag_present) + GNU_all_call_sites (flag_present) yes [ 41] formal_parameter name (string) "fb" decl_file (data1) 1 @@ -256,17 +256,17 @@ DWARF section [25] '.debug_info' at offset 0x106c: [ 26] imported_unit import (GNU_ref_alt) [ b] [ 2b] subprogram - external (flag_present) + external (flag_present) yes name (strp) "call_foo" decl_file (data1) 1 decl_line (data1) 3 - prototyped (flag_present) + prototyped (flag_present) yes type (GNU_ref_alt) [ 3e] low_pc (addr) +0x0000000000000670 <call_foo> high_pc (udata) 23 (+0x0000000000000687) frame_base (exprloc) [ 0] call_frame_cfa - GNU_all_call_sites (flag_present) + GNU_all_call_sites (flag_present) yes [ 41] formal_parameter name (string) "fb" decl_file (data1) 1 @@ -295,17 +295,17 @@ DWARF section [28] '.debug_info' at offset 0x1088: [ 26] imported_unit import (GNU_ref_alt) [ b] [ 2b] subprogram - external (flag_present) + external (flag_present) yes name (GNU_strp_alt) "main" decl_file (data1) 1 decl_line (data1) 8 - prototyped (flag_present) + prototyped (flag_present) yes type (GNU_ref_alt) [ 30] low_pc (addr) 0x00000000004004ec <main> high_pc (udata) 18 (0x00000000004004fe) frame_base (exprloc) [ 0] call_frame_cfa - GNU_all_call_sites (flag_present) + GNU_all_call_sites (flag_present) yes [ 41] formal_parameter name (GNU_strp_alt) "argc" decl_file (data1) 1 diff --git a/tests/run-readelf-zdebug-rel.sh b/tests/run-readelf-zdebug-rel.sh index 88ea5bf2..1232d63b 100755 --- a/tests/run-readelf-zdebug-rel.sh +++ b/tests/run-readelf-zdebug-rel.sh @@ -60,17 +60,17 @@ DWARF section [ 4] '.debug_info' at offset 0x58: high_pc (data8) 24 (0x0000000000000018) stmt_list (sec_offset) 0 [ 2d] subprogram - external (flag_present) + external (flag_present) yes name (strp) "main" decl_file (data1) 1 decl_line (data1) 4 - prototyped (flag_present) + prototyped (flag_present) yes type (ref4) [ 80] low_pc (addr) 000000000000000000 high_pc (data8) 24 (0x0000000000000018) frame_base (exprloc) [ 0] call_frame_cfa - GNU_all_call_sites (flag_present) + GNU_all_call_sites (flag_present) yes sibling (ref4) [ 80] [ 4e] formal_parameter name (strp) "argc" |
