Eric Anholt <[email protected]> writes:

> I want to be able to call client tests with simple-xinit, so assertion
> failures should be an error.

> +        if (WIFSIGNALED(wstatus))
> +            return 1;
> +
> +        if (WCOREDUMP(wstatus))
> +            return 1;
> +
> +        assert(WIFEXITED(wstatus));
>          return WEXITSTATUS(wstatus);

Could just be

        if (!WIFEXITED(wstatus))
                return 1;
        return WEXITSTATUS(wstatus);

-- 
-keith

Attachment: signature.asc
Description: PGP signature

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to