Changeset 501 in kBuild for vendor/gnumake/current/tests/scripts/features/errors
- Timestamp:
- Sep 15, 2006 2:30:32 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/gnumake/current/tests/scripts/features/errors
r280 r501 1 # -*-perl-*- 2 1 3 $description = "The following tests the -i option and the '-' in front of \n" 2 4 ."commands to test that make ignores errors in these commands\n" … … 15 17 if ($vos) 16 18 { 17 $ delete_command = "delete_file";19 $rm_command = "delete_file"; 18 20 } 19 21 else 20 22 { 21 $ delete_command = "rm";23 $rm_command = "rm"; 22 24 } 23 25 … … 27 29 28 30 print MAKEFILE "clean:\n" 29 ."\t-$ delete_command cleanit\n"30 ."\t$ delete_command foo\n"31 ."\t-$rm_command cleanit\n" 32 ."\t$rm_command foo\n" 31 33 ."clean2: \n" 32 ."\t$ delete_command cleanit\n"33 ."\t$ delete_command foo\n";34 ."\t$rm_command cleanit\n" 35 ."\t$rm_command foo\n"; 34 36 35 37 # END of Contents of MAKEFILE … … 40 42 41 43 unlink("cleanit"); 42 $cleanit_error = `sh -c "$ delete_command cleanit 2>&1"`;44 $cleanit_error = `sh -c "$rm_command cleanit 2>&1"`; 43 45 $delete_error_code = $? >> 8; 44 46 … … 46 48 # ------- 47 49 48 $answer = "$ delete_command cleanit\n"50 $answer = "$rm_command cleanit\n" 49 51 . $cleanit_error 50 52 ."$make_name: [clean] Error $delete_error_code (ignored)\n" 51 ."$ delete_command foo\n";53 ."$rm_command foo\n"; 52 54 53 55 &run_make_with_options($makefile,"",&get_logfile); … … 73 75 # ------- 74 76 75 $answer = "$ delete_command cleanit\n"77 $answer = "$rm_command cleanit\n" 76 78 . $cleanit_error 77 79 ."$make_name: [clean2] Error $delete_error_code (ignored)\n" 78 ."$ delete_command foo\n";80 ."$rm_command foo\n"; 79 81 80 82 &run_make_with_options($makefile,"clean2 -i",&get_logfile);
Note:
See TracChangeset
for help on using the changeset viewer.

