summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2017-04-07 15:57:45 +0200
committerUlf Hermann <[email protected]>2017-04-26 14:32:18 +0000
commitb9e2d78403173c35c1d8e31ef2e249f311b5e9dd (patch)
tree34eff6920338d2226bff066f5b0f77b6666b7dba /tests
parentbb8bd71deb85ce7818fa747c3297d4b0ed7cf367 (diff)
Make elf section sorting more deterministic
At least one test (dwfl-addr-sect) depends on the order of elf sections with equal addresses. This is not guaranteed by the code. Compare also by end address and name to tell entries apart. Change-Id: I0e85e7b86a0489b6bc85f45f9a359c68a04f635a Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r--tests/ChangeLog6
-rwxr-xr-xtests/run-dwfl-addr-sect.sh2
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index c4e76d15..74d7c9a1 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,9 @@
+2017-04-20 Ulf Hermann <[email protected]>
+
+ * run-dwfl-addr-sect.sh: Expect section with alphabetically smaller
+ name when requesting the start address of two otherwise equal
+ zero-sized sections.
+
2017-04-20 Ulf Hermann <[email protected]>
* run-readelf-dwz-multi.sh: Expect readelf to output "yes" for flags
diff --git a/tests/run-dwfl-addr-sect.sh b/tests/run-dwfl-addr-sect.sh
index 80da0081..e257bfc0 100755
--- a/tests/run-dwfl-addr-sect.sh
+++ b/tests/run-dwfl-addr-sect.sh
@@ -20,7 +20,7 @@
testfiles testfile43 testfile50
testrun_compare ${abs_builddir}/dwfl-addr-sect -e testfile43 0x64 0x8 0x98 <<\EOF
-address 0x64 => module "" section 4 + 0
+address 0x64 => module "" section 3 + 0
address 0x8 => module "" section 1 + 0x8
address 0x98 => module "" section 7 + 0
EOF