Add ppc testcase for elf32_xlatetom.c fix.
authorMark Wielaard <mjw@redhat.com>
Tue, 17 Jul 2012 19:12:39 +0000 (21:12 +0200)
committerMark Wielaard <mjw@redhat.com>
Tue, 17 Jul 2012 19:12:39 +0000 (21:12 +0200)
Fails before commit bc0f74 on x86, succeeds after.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
tests/ChangeLog
tests/run-unstrip-n.sh
tests/testcore-rtlib-ppc.bz2 [new file with mode: 0644]

index 9d17c7e..4fcc8fa 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-17  Mark Wielaard  <mjw@redhat.com>
+
+       * testcore-rtlib-ppc.bz2: New testfile.
+       * run-unstrip-n.sh: Check new ppc core testfile.
+
 2012-06-26  Mike Frysinger  <vapier@gentoo.org>
 
        * Makefile.am (check_PROGRAMS): Rename from noinst_PROGRAMS.
index 342a6ad..a2f0d6c 100755 (executable)
@@ -31,7 +31,7 @@
 # 
 # gcc -m32 -o rt_crash -lrt rt_crash.c
 
-testfiles testcore-rtlib
+testfiles testcore-rtlib testcore-rtlib-ppc
 
 testrun_compare ../src/unstrip -n --core=testcore-rtlib <<\EOF
 0x8048000+0x2000 f1c600bc36cb91bf01f9a63a634ecb79aa4c3199@0x8048178 . - [exe]
@@ -42,4 +42,13 @@ testrun_compare ../src/unstrip -n --core=testcore-rtlib <<\EOF
 0xf77d7000+0x21000 6d2cb32650054f1c176d01d48713a4a5e5e84c1a@0xf77d7124 /lib/ld-linux.so.2 - ld-linux.so.2
 EOF
 
+testrun_compare ../src/unstrip -n --core=testcore-rtlib-ppc <<\EOF
+0x10000000+0x20000 979b7a26747cc09bd84a42b311b5288c704baea5@0x10000174 . - [exe]
+0x100000+0x10000 708b900b05176964512a6b0fe90c2a0c9d73d726@0x100334 . - linux-vdso32.so.1
+0xfd50000+0x30000 3f7d21508470322d2f47acddc20ab10516edba99@0xfd50164 /lib/librt.so.1 - librt.so.1
+0xfdf0000+0x1c0000 edf3dd232e09d01b90683889bd16b9406c52d4de@0xfdf0184 /lib/libc.so.6 - libc.so.6
+0xfdb0000+0x40000 f6ee91d4c629bc7dacc10534cb30056914e7e0b5@0xfdb0164 /lib/libpthread.so.0 - libpthread.so.0
+0xffb0000+0x50000 edec437a85026a1cf8cda94003706202733130c1@0xffb0124 /lib/ld.so.1 - ld.so.1
+EOF
+
 exit 0
diff --git a/tests/testcore-rtlib-ppc.bz2 b/tests/testcore-rtlib-ppc.bz2
new file mode 100644 (file)
index 0000000..a3cec60
Binary files /dev/null and b/tests/testcore-rtlib-ppc.bz2 differ