3 $description = "Test ignored failures in recipe command lines";
13 "one", "exit 1\n#MAKE#: [#MAKEFILE#:3: one] Error 1 (ignored)\nexit 0\n");
18 run_make_test(undef, " -i two",
19 "exit 1\n#MAKE#: [#MAKEFILE#:6: two] Error 1 (ignored)\nexit 0\n");
24 # Test that error line offset works
32 '', "hi\nthere\n#MAKE#: *** [#MAKEFILE#:5: all] Error 1", 512);
37 # Try failing due to unknown command
38 my $unk = './foobarbazbozblat';
41 my $err = $ERR_no_such_file;
46 'one', "$unk xx yy\n#MAKE#: $unk: $err\n#MAKE#: [#MAKEFILE#:2: one] Error 127 (ignored)\n");
54 "$unk aa bb\n#MAKE#: $unk: $err\n#MAKE#: [#MAKEFILE#:2: two] Error 127 (ignored)\n");
59 run_make_test(undef, 'two',
60 "$unk aa bb\n#MAKE#: $unk: $err\n#MAKE#: *** [#MAKEFILE#:2: two] Error 127\n", 512);
62 # SV #56918 : Test the unknown command as the second recipe line
69 "one\n$unk qq rr\n#MAKE#: $unk: $err\n#MAKE#: *** [#MAKEFILE#:4: three] Error 127\n", 512);
71 # Try failing due to non-executable file
73 if ($ERR_nonexe_file) {
74 my $noexe = './barfooblatboz';
81 'one', "$noexe xx yy\n#MAKE#: $noexe: $ERR_nonexe_file\n#MAKE#: [#MAKEFILE#:2: one] Error 127 (ignored)\n");
86 # Try failing by "running" a directory
95 '', "sd\n#MAKE#: sd: $ERR_exe_dir\n#MAKE#: *** [#MAKEFILE#:3: all] Error 127", 512);
100 '', "./sd\n#MAKE#: ./sd: $ERR_exe_dir\n#MAKE#: *** [#MAKEFILE#:2: all] Error 127", 512);