summaryrefslogtreecommitdiff
path: root/scripts/t
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2018-09-15 16:10:29 -0700
committerGuillem Jover <guillem@debian.org>2018-09-18 23:43:37 +0200
commit2848db123e1452d2c71840b7c00ca198c3626d4e (patch)
tree88e5988ce485cb954dd43d80328c4f2f21a92143 /scripts/t
parenta7901786002cf4bd9f1dfbf3e4d844fc27478a8b (diff)
downloaddpkg-2848db123e1452d2c71840b7c00ca198c3626d4e.tar.gz
perl: Replace all calls to Cwd::cwd with Cwd::getcwd
The former calls /bin/pwd, while the latter uses the getcwd() syscall directly. Signed-off-by: Guillem Jover <guillem@debian.org>
Diffstat (limited to 'scripts/t')
-rw-r--r--scripts/t/Dpkg_Shlibs.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/t/Dpkg_Shlibs.t b/scripts/t/Dpkg_Shlibs.t
index 4dc98bb3f..a2b892d74 100644
--- a/scripts/t/Dpkg_Shlibs.t
+++ b/scripts/t/Dpkg_Shlibs.t
@@ -54,7 +54,7 @@ Dpkg::Shlibs::blank_library_paths();
# We want relative paths inside the ld.so.conf fragments to work, and $srcdir
# is usually a relative path, so let's temporarily switch directory.
# XXX: An alternative would be to make parse_ldso_conf relative path aware.
-my $cwd = cwd();
+my $cwd = getcwd();
test_needs_srcdir_switch();
Dpkg::Shlibs::parse_ldso_conf('t/Dpkg_Shlibs/ld.so.conf');
chdir($cwd);