suppress an incorrect error message in grind
This commit is contained in:
parent
231c08dc5e
commit
6e3f75c2aa
|
@ -277,14 +277,15 @@ go(int which_child)
|
||||||
close(aa[0]);
|
close(aa[0]);
|
||||||
close(aa[1]);
|
close(aa[1]);
|
||||||
close(bb[1]);
|
close(bb[1]);
|
||||||
char buf[3] = { 0, 0, 0 };
|
char buf[4] = { 0, 0, 0, 0 };
|
||||||
read(bb[0], buf+0, 1);
|
read(bb[0], buf+0, 1);
|
||||||
read(bb[0], buf+1, 1);
|
read(bb[0], buf+1, 1);
|
||||||
|
read(bb[0], buf+2, 1);
|
||||||
close(bb[0]);
|
close(bb[0]);
|
||||||
int st1, st2;
|
int st1, st2;
|
||||||
wait(&st1);
|
wait(&st1);
|
||||||
wait(&st2);
|
wait(&st2);
|
||||||
if(st1 != 0 || st2 != 0 || strcmp(buf, "hi") != 0){
|
if(st1 != 0 || st2 != 0 || strcmp(buf, "hi\n") != 0){
|
||||||
printf("grind: exec pipeline failed %d %d \"%s\"\n", st1, st2, buf);
|
printf("grind: exec pipeline failed %d %d \"%s\"\n", st1, st2, buf);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue