summaryrefslogtreecommitdiff
path: root/t/dh_link
diff options
context:
space:
mode:
authorjoeyh <joeyh>2007-08-18 00:42:06 +0000
committerjoeyh <joeyh>2007-08-18 00:42:06 +0000
commit91b8c0c1c3c6bed0407734c444161f89a2411f99 (patch)
treefdf7de5609cb16422720caed336f7e3a6057bd9d /t/dh_link
parentb5fbfc1ee24b49e9e7d902e66b42fad430f39e95 (diff)
r2020: * dh_link: Skip self-links. Closes: #438572
Diffstat (limited to 't/dh_link')
-rwxr-xr-xt/dh_link6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/dh_link b/t/dh_link
index daeb209b..c6be35be 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");