diff options
author | Paul Smith <psmith@gnu.org> | 2010-08-29 23:05:26 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2010-08-29 23:05:26 +0000 |
commit | a86d1693bac05e04f90a2ee3c4fa3547c788377c (patch) | |
tree | e26687d523ee3e243ca9f0b0dc6a2f4d57321919 /tests/scripts/features/errors | |
parent | 3b1432d86aebdc48aaa52efa06fad1ad662b38d7 (diff) | |
download | gunmake-a86d1693bac05e04f90a2ee3c4fa3547c788377c.tar.gz |
Bump the version to 3.82.90.
Fix some doc bugs.
Implement the --trace flag.
Show filename/linenumber on error.
Diffstat (limited to 'tests/scripts/features/errors')
-rw-r--r-- | tests/scripts/features/errors | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/tests/scripts/features/errors b/tests/scripts/features/errors index e372fe0..1e4be46 100644 --- a/tests/scripts/features/errors +++ b/tests/scripts/features/errors @@ -42,15 +42,17 @@ close(MAKEFILE); unlink("cleanit"); $cleanit_error = `sh -c "$rm_command cleanit 2>&1"`; +chomp $cleanit_error; $delete_error_code = $? >> 8; # TEST #1 # ------- -$answer = "$rm_command cleanit\n" - . $cleanit_error - ."$make_name: [clean] Error $delete_error_code (ignored)\n" - ."$rm_command foo\n"; +$answer = "$rm_command cleanit +$cleanit_error +$makefile:2: recipe for target `clean' failed +$make_name: [clean] Error $delete_error_code (ignored) +$rm_command foo\n"; &run_make_with_options($makefile,"",&get_logfile); @@ -74,10 +76,11 @@ if (!$vos) # TEST #2 # ------- -$answer = "$rm_command cleanit\n" - . $cleanit_error - ."$make_name: [clean2] Error $delete_error_code (ignored)\n" - ."$rm_command foo\n"; +$answer = "$rm_command cleanit +$cleanit_error +$makefile:5: recipe for target `clean2' failed +$make_name: [clean2] Error $delete_error_code (ignored) +$rm_command foo\n"; &run_make_with_options($makefile,"clean2 -i",&get_logfile); |