use File::Basename;
use POSIX qw( WEXITSTATUS WIFEXITED);
use Cwd qw(abs_path getcwd);
-use File::Path qw(make_path remove_tree);
+use File::Path qw(mkpath); # mkpath works with ancient perl, as well as newer perl
eval 'use YAML qw(LoadFile); 1' || die "TESTrun needs YAML.pm. apt install libyaml-perl/yum install per-YAML/cpanm YAML";
# a build directory.
my $newdir = "tests/NEW";
my $diffdir= "tests/DIFF";
-make_path($newdir);
-make_path($diffdir);
+mkpath($newdir);
+mkpath($diffdir);
my $origdir = getcwd();
my $srcdir = $ENV{'srcdir'} || ".";