summaryrefslogtreecommitdiff
path: root/tests/scripts/features/errors
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2019-09-14 15:41:58 -0400
committerPaul Smith <psmith@gnu.org>2019-09-16 08:25:33 -0400
commit02a4c2913a47c988e958b965e53197feff281f38 (patch)
treedb6e1af045188b01e8f81b97fa18adfcc61a64bd /tests/scripts/features/errors
parent8acb89c8c4c7a65dcd29719778cb759468738a6a (diff)
downloadmake-git-02a4c2913a47c988e958b965e53197feff281f38.tar.gz
* src/job.c (child_execute_job): Use errno from find_in_given_path().
* tests/test_driver.pl: Determine non-executable error message. * tests/scripts/features/errors: Use the local non-executable error.
Diffstat (limited to 'tests/scripts/features/errors')
-rw-r--r--tests/scripts/features/errors22
1 files changed, 12 insertions, 10 deletions
diff --git a/tests/scripts/features/errors b/tests/scripts/features/errors
index eac64ed9..ec49547b 100644
--- a/tests/scripts/features/errors
+++ b/tests/scripts/features/errors
@@ -60,15 +60,17 @@ run_make_test(undef, 'two',
# Try failing due to non-executable file
-my $noexe = './barfooblatboz';
-touch($noexe);
-
-run_make_test(qq!
-one: ; -$noexe xx yy
-two: ; $noexe aa bb
-!,
- 'one', "$noexe xx yy\n#MAKE#: $noexe: Permission denied\n#MAKE#: [#MAKEFILE#;2: one] Error 127 (ignored)\n");
-
-unlink($noexe);
+if ($ERR_nonexe_file) {
+ my $noexe = './barfooblatboz';
+ touch($noexe);
+
+ run_make_test(qq!
+ one: ; -$noexe xx yy
+ two: ; $noexe aa bb
+ !,
+ 'one', "$noexe xx yy\n#MAKE#: $noexe: $ERR_nonexe_file\n#MAKE#: [#MAKEFILE#;2: one] Error 127 (ignored)\n");
+
+ unlink($noexe);
+}
1;