Re: [Intel-gfx] [i-g-t PATCH 1/4] lib/igt_core: Add igt_exec helpers

2017-05-10 Thread Abdiel Janulgue
On 10.05.2017 15:14, Petri Latvala wrote: > On Wed, May 10, 2017 at 03:10:16PM +0300, Abdiel Janulgue wrote: >> In case the stream output is more than the pipe buf, the read loop above >> would just unblock the rest of the entries. From pipe(2) page: > > > But you don't reach that read loop

Re: [Intel-gfx] [i-g-t PATCH 1/4] lib/igt_core: Add igt_exec helpers

2017-05-10 Thread Petri Latvala
On Wed, May 10, 2017 at 03:10:16PM +0300, Abdiel Janulgue wrote: > In case the stream output is more than the pipe buf, the read loop above > would just unblock the rest of the entries. From pipe(2) page: But you don't reach that read loop until system() returns. Which happens after the program

Re: [Intel-gfx] [i-g-t PATCH 1/4] lib/igt_core: Add igt_exec helpers

2017-05-10 Thread Abdiel Janulgue
On 09.05.2017 13:18, Petri Latvala wrote: snip 8< - >> +memset(buf, 0, sizeof(buf)); >> +while (read(current->read_fd, buf, sizeof(buf)) > 0) { >> +if (current->redirected) { >> +if (!unredirect_output(current)) >> +

Re: [Intel-gfx] [i-g-t PATCH 1/4] lib/igt_core: Add igt_exec helpers

2017-05-09 Thread Petri Latvala
On Thu, Apr 20, 2017 at 11:13:45AM +0300, Abdiel Janulgue wrote: > Support executing external processes with the goal of capturing its > standard streams to the igt logging infrastructure in addition to its > exit status. > > Cc: Daniel Vetter > Cc: Petri Latvala

[Intel-gfx] [i-g-t PATCH 1/4] lib/igt_core: Add igt_exec helpers

2017-04-20 Thread Abdiel Janulgue
Support executing external processes with the goal of capturing its standard streams to the igt logging infrastructure in addition to its exit status. Cc: Daniel Vetter Cc: Petri Latvala Signed-off-by: Abdiel Janulgue