diff options
author | joeyh <joeyh> | 2007-08-18 00:42:06 +0000 |
---|---|---|
committer | joeyh <joeyh> | 2007-08-18 00:42:06 +0000 |
commit | 91b8c0c1c3c6bed0407734c444161f89a2411f99 (patch) | |
tree | fdf7de5609cb16422720caed336f7e3a6057bd9d /t | |
parent | b5fbfc1ee24b49e9e7d902e66b42fad430f39e95 (diff) | |
download | debhelper-91b8c0c1c3c6bed0407734c444161f89a2411f99.tar.gz |
r2020: * dh_link: Skip self-links. Closes: #438572
Diffstat (limited to 't')
-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"); |