diff options
Diffstat (limited to 't/dh_link')
-rwxr-xr-x | t/dh_link | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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"); |