X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=t%2Fdh_link;h=c6be35be4020052536dc6153a795baf7667d4312;hb=18a0da8092ea9f3dc48bca92b36f592af25a608d;hp=daeb209b9b3ad9a3d315e3f983b95db80ee7292d;hpb=c5d64a7f9b1db4e98aff95c237342a793e40c6f5;p=debhelper.git diff --git a/t/dh_link b/t/dh_link index daeb209..c6be35b 100755 --- a/t/dh_link +++ b/t/dh_link @@ -1,6 +1,6 @@ #!/usr/bin/perl use Test; -plan(tests => 12); +plan(tests => 13); # It used to not make absolute links in this situation, and it should. # #37774 @@ -34,6 +34,10 @@ ok(readlink("debian/debhelper/usr/lib/geant4/c"), "../.."); system("./dh_link","/","usr/lib/geant4/d"); ok(readlink("debian/debhelper/usr/lib/geant4/d"), "/"); +# Link to self. +system("./dh_link usr/lib/foo usr/lib/foo 2>/dev/null"); +ok(! -l "debian/debhelper/usr/lib/foo"); + # Make sure the link conversion didn't change any of the previously made # links. ok(readlink("debian/debhelper/usr/lib/bar"), "/etc/foo");