File tree 3 files changed +18
-1
lines changed
regression/goto-gcc/run_diagnostic
3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change
1
+ int main ()
2
+ {
3
+ return 0 ;
4
+ }
Original file line number Diff line number Diff line change
1
+ CORE
2
+ main.i
3
+ --native-compiler /no/such/tool
4
+ ^EXIT=1$
5
+ ^SIGNAL=0$
6
+ ^execvp /no/such/tool failed: No such file or directory$
7
+ --
8
+ ^Remove failed
9
+ ^warning: ignoring
10
+ ^CONVERSION ERROR$
Original file line number Diff line number Diff line change @@ -127,10 +127,13 @@ int run(
127
127
dup2 (stdin_fd, STDIN_FILENO);
128
128
if (stdout_fd!=STDOUT_FILENO)
129
129
dup2 (stdout_fd, STDOUT_FILENO);
130
+
131
+ errno=0 ;
130
132
execvp (what.c_str (), _argv.data ());
131
133
132
134
/* usually no return */
133
- return 1 ;
135
+ perror (std::string (" execvp " +what+" failed" ).c_str ());
136
+ exit (1 );
134
137
}
135
138
else /* fork() returns new pid to the parent process */
136
139
{
You can’t perform that action at this time.
0 commit comments