diff options
author | Raphael Hertzog <hertzog@debian.org> | 2007-08-14 15:22:23 +0200 |
---|---|---|
committer | Raphael Hertzog <hertzog@debian.org> | 2007-08-14 15:22:23 +0200 |
commit | fddb619b2d5d92bb7b735688ac78e260583b75a4 (patch) | |
tree | 646b7086798cf76e10626c29daebbef38dd2b073 /scripts/t | |
parent | 1c2c6ce514c967348ebae88e5afc5ed3ff9da183 (diff) | |
download | dpkg-fddb619b2d5d92bb7b735688ac78e260583b75a4.tar.gz |
Deperecate a symbol only when the history of version matches.
When merging symbols in a SymbolFile, a symbol is deprecated when it has
disappeared from the new set of symbols. However when the new set of
symbols dates back to before the current one, deprecating doesn't make
sense. This patch corrects this behaviour. Also add a test to verify that
symbols got correctly marked as deprecated.
Diffstat (limited to 'scripts/t')
-rw-r--r-- | scripts/t/200_Dpkg_Shlibs.t | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/t/200_Dpkg_Shlibs.t b/scripts/t/200_Dpkg_Shlibs.t index ec12a8c87..b2e3fef78 100644 --- a/scripts/t/200_Dpkg_Shlibs.t +++ b/scripts/t/200_Dpkg_Shlibs.t @@ -1,6 +1,6 @@ # -*- mode: cperl;-*- -use Test::More tests => 25; +use Test::More tests => 26; use strict; use warnings; @@ -79,6 +79,10 @@ ok( $sym_file_old->has_lost_symbols($sym_file), 'has lost symbols' ); is( $sym_file_old->lookup_symbol('__bss_start@Base', ['libc.so.6']), undef, 'internal symbols are blacklisted'); +$sym = $sym_file->lookup_symbol('_errno@GLIBC_2.0', ['libc.so.6'], 1); +is_deeply($sym, { 'minver' => '2.3.6.ds1-13', 'dep_id' => 0, + 'deprecated' => '2.6-1', 'depends' => '', + 'soname' => 'libc.so.6' }, 'deprecated symbol'); use File::Temp; |