summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJan Kratochvil <[email protected]>2012-10-18 00:11:30 +0200
committerJan Kratochvil <[email protected]>2012-11-29 12:50:26 +0100
commitd5784afaf49cd59b9286e766cd9b1cf00cb43553 (patch)
tree45c1da9688f48bc8bb57e2887e3bbfbb0ec1d63e /tests
parentae81c70c997a87ffd2643dfc7818cff89bbba8f6 (diff)
libdwfl/
* argp-std.c: Update Copyright year. (offline_find_elf): New function. (offline_callbacks): Use it for find_elf. (struct parse_opt): New. (parse_opt): New key ARGP_KEY_INIT. In other make hook struct parse_opt pointer from former Dwfl pointer. Delay 'e and OPT_COREFILE processing till ARGP_KEY_SUCCESS. Initialize state->input already from ARGP_KEY_SUCCESS. Modify the cleanup in ARGP_KEY_ERROR. Make the final state->input initialization optional. * dwfl_end.c: Update Copyright year. (dwfl_end): Free executable_for_core. * libdwflP.h: Update Copyright year. (struct Dwfl): New field executable_for_core. tests/ * run-addrname-test.sh: New test for PIE relocation. * testfile70.core.bz2: New file. * testfile70.exec.bz2: New file. * Makefile.am (EXTRA_DIST): Add testfile70.core.bz2 and testfile70.exec.bz2 . Signed-off-by: Jan Kratochvil <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r--tests/ChangeLog8
-rw-r--r--tests/Makefile.am3
-rwxr-xr-xtests/run-addrname-test.sh10
-rw-r--r--tests/testfile70.core.bz2bin0 -> 2739 bytes
-rw-r--r--tests/testfile70.exec.bz2bin0 -> 2567 bytes
5 files changed, 20 insertions, 1 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index edb82b48..5b06b85f 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,11 @@
+2012-11-29 Jan Kratochvil <[email protected]>
+
+ * run-addrname-test.sh: New test for PIE relocation.
+ * testfile70.core.bz2: New file.
+ * testfile70.exec.bz2: New file.
+ * Makefile.am (EXTRA_DIST): Add testfile70.core.bz2 and
+ testfile70.exec.bz2 .
+
2012-10-27 Jan Kratochvil <[email protected]>
* Makefile.am (EXTRA_DIST): Add testfile64.bz2, testfile65.bz2,
diff --git a/tests/Makefile.am b/tests/Makefile.am
index f2d2484a..6808bd13 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -180,7 +180,8 @@ EXTRA_DIST = run-arextract.sh run-arsymtest.sh \
testfile60.bz2 testfile61.bz2 \
run-readelf-vmcoreinfo.sh testfile62.bz2 \
run-readelf-mixed-corenote.sh testfile63.bz2 testfile64.bz2 \
- testfile65.bz2 testfile69.core.bz2 testfile69.so.bz2
+ testfile65.bz2 testfile69.core.bz2 testfile69.so.bz2 \
+ testfile70.core.bz2 testfile70.exec.bz2
if USE_VALGRIND
valgrind_cmd="valgrind -q --trace-children=yes --error-exitcode=1"
diff --git a/tests/run-addrname-test.sh b/tests/run-addrname-test.sh
index cc8aa335..99abf9db 100755
--- a/tests/run-addrname-test.sh
+++ b/tests/run-addrname-test.sh
@@ -306,4 +306,14 @@ libglobal+0x9
??:0
EOF
+testfiles testfile70.exec testfile70.core
+testrun_compare ../src/addr2line -S -e testfile70.exec --core=testfile70.core 0x7ff2cfe9b6b5 <<\EOF
+main+0x9
+??:0
+EOF
+testrun_compare ../src/addr2line -S --core=testfile70.core -e testfile70.exec 0x7ff2cfe9b6b5 <<\EOF
+main+0x9
+??:0
+EOF
+
exit 0
diff --git a/tests/testfile70.core.bz2 b/tests/testfile70.core.bz2
new file mode 100644
index 00000000..6c47c6d4
--- /dev/null
+++ b/tests/testfile70.core.bz2
Binary files differ
diff --git a/tests/testfile70.exec.bz2 b/tests/testfile70.exec.bz2
new file mode 100644
index 00000000..f1b969af
--- /dev/null
+++ b/tests/testfile70.exec.bz2
Binary files differ