"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/test-runner.c" between
wayland-1.17.0.tar.xz and wayland-1.18.0.tar.xz

About: Wayland is a computer display server protocol for a compositor to talk to its clients and a library for Linux implementing that protocol.

test-runner.c  (wayland-1.17.0.tar.xz):test-runner.c  (wayland-1.18.0.tar.xz)
skipping to change at line 341 skipping to change at line 341
int success = 0; int success = 0;
pid = fork(); pid = fork();
assert(pid >= 0); assert(pid >= 0);
if (pid == 0) if (pid == 0)
run_test(t); /* never returns */ run_test(t); /* never returns */
if (waitid(P_PID, pid, &info, WEXITED)) { if (waitid(P_PID, pid, &info, WEXITED)) {
stderr_set_color(RED); stderr_set_color(RED);
fprintf(stderr, "waitid failed: %m\n"); fprintf(stderr, "waitid failed: %s\n",
strerror(errno));
stderr_reset_color(); stderr_reset_color();
abort(); abort();
} }
switch (info.si_code) { switch (info.si_code) {
case CLD_EXITED: case CLD_EXITED:
if (info.si_status == EXIT_SUCCESS) if (info.si_status == EXIT_SUCCESS)
success = !t->must_fail; success = !t->must_fail;
else else
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)