diff options
author | Josh Triplett <josh@joshtriplett.org> | 2018-09-15 17:20:31 -0700 |
---|---|---|
committer | Josh Triplett <josh@joshtriplett.org> | 2018-09-15 17:20:31 -0700 |
commit | 62b6840b0ed652f31c3cb542444675fec792f572 (patch) | |
tree | 3d6ae3d7de0463229437be4876b71e8f1d5e3062 /t/Test/DH.pm | |
parent | 147350816049aecaed3f9a859e70128705c25af8 (diff) | |
download | debhelper-62b6840b0ed652f31c3cb542444675fec792f572.tar.gz |
Replace all calls to Cwd::cwd with Cwd::getcwd
The former calls /bin/pwd, while the latter uses the getcwd syscall
directly. This eliminates some forks and execs from every build.
Diffstat (limited to 't/Test/DH.pm')
-rw-r--r-- | t/Test/DH.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/Test/DH.pm b/t/Test/DH.pm index 20e6e9f6..5ca9515d 100644 --- a/t/Test/DH.pm +++ b/t/Test/DH.pm @@ -5,7 +5,7 @@ use warnings; use Test::More; -use Cwd qw(cwd realpath); +use Cwd qw(getcwd realpath); use Errno qw(EEXIST); use Exporter qw(import); @@ -44,7 +44,7 @@ our @EXPORT = qw( our ($TEST_DH_COMPAT, $ROOT_OK, $ROOT_CMD); -my $START_DIR = cwd(); +my $START_DIR = getcwd(); my $TEST_DIR; sub run_dh_tool { |