Просмотр исходного кода

scripts: Move single space objdump test case into a new data file

This will allow to regenerate the objdump.ls file.
Guillem Jover лет назад: 14
Родитель
Сommit
8aadb22011

+ 1 - 0
scripts/Makefile.am

@@ -213,6 +213,7 @@ test_data = \
 	t/200_Dpkg_Shlibs/ld.so.conf.d/normal.conf \
 	t/200_Dpkg_Shlibs/ld.so.conf.d/inf_recurse.conf \
 	t/200_Dpkg_Shlibs/ld.so.conf.d/recursive.conf \
+	t/200_Dpkg_Shlibs/objdump.space \
 	t/200_Dpkg_Shlibs/objdump.glib-ia64 \
 	t/200_Dpkg_Shlibs/objdump.libc6-2.3 \
 	t/200_Dpkg_Shlibs/objdump.libc6-2.6 \

+ 6 - 0
scripts/t/200_Dpkg_Shlibs.t

@@ -69,6 +69,12 @@ my $sym = $obj->get_symbol('optarg@GLIBC_2.0');
 ok($sym, 'optarg@GLIBC_2.0 exists');
 ok(!$sym->{'defined'}, 'R_*_COPY relocations are taken into account');
 
+open $objdump, '<', "$datadir/objdump.space"
+  or die "$datadir/objdump.space: $!";
+$obj->reset();
+$obj->parse_objdump_output($objdump);
+close $objdump;
+
 # Non-regression test for #506139
 $sym = $obj->get_symbol('singlespace');
 ok($sym, 'version less symbol separated by a single space are correctly parsed');

+ 0 - 1
scripts/t/200_Dpkg_Shlibs/objdump.ls

@@ -156,7 +156,6 @@ DYNAMIC SYMBOL TABLE:
 00000000      DF *UND*	00000054  GLIBC_2.0   strcmp
 00000000      DF *UND*	000000fa  GLIBC_2.0   exit
 00000000      DF *UND*	000004bc  ACL_1.0     acl_from_text
-00000000      DF *UND*	00000075 singlespace
 0805bc90 g    D  *ABS*	00000000  Base        _end
 0805b860 g    DO .bss	00000004  GLIBC_2.0   stdout
 0805b82c g    D  *ABS*	00000000  Base        _edata

+ 8 - 0
scripts/t/200_Dpkg_Shlibs/objdump.space

@@ -0,0 +1,8 @@
+
+phony-output:     file format elf32-i386
+architecture: i386, flags 0x00000112:
+EXEC_P, HAS_SYMS, D_PAGED
+start address 0x08049b50
+
+DYNAMIC SYMBOL TABLE:
+00000000      DF *UND*	00000075 singlespace