diff options
author | Paul Smith <psmith@gnu.org> | 2019-09-14 15:58:57 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2019-09-16 08:25:33 -0400 |
commit | 57b13c80200f896ab919c5e3fb2c3b6bb43a1c3c (patch) | |
tree | 714cde805294ae42f96aeed21ef4d84bd0acbb0f /tests/test_driver.pl | |
parent | 02a4c2913a47c988e958b965e53197feff281f38 (diff) | |
download | make-git-57b13c80200f896ab919c5e3fb2c3b6bb43a1c3c.tar.gz |
* tests/test_driver.pl: Remember error for "running" a directory.
* tests/scripts/features/errors: Check errors "running" a directory.
Diffstat (limited to 'tests/test_driver.pl')
-rw-r--r-- | tests/test_driver.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_driver.pl b/tests/test_driver.pl index 30e19435..6ae523d1 100644 --- a/tests/test_driver.pl +++ b/tests/test_driver.pl @@ -69,6 +69,7 @@ $ERR_no_such_file = undef; $ERR_read_only_file = undef; $ERR_unreadable_file = undef; $ERR_noexe_file = undef; +$ERR_exe_dir = undef; if (open(my $F, '<', 'file.none')) { print "Opened non-existent file! Skipping related tests.\n"; @@ -94,6 +95,13 @@ if ($? == 0) { $ERR_nonexe_file = "$!"; } +$_ = `./.`; +if ($? == 0) { + print "Executed directory! Skipping related tests.\n"; +} else { + $ERR_exe_dir = "$!"; +} + chmod(0000, 'file.out'); if (open(my $F, '<', 'file.out')) { print "Opened unreadable file! Skipping related tests.\n"; |